You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using a PHP 8.1 enum with a reserved keyword e.g. empty as a case, infection will crash.
Error message:
In UnparsableFile.php line 13: Could not parse the file "[removed]/DepotState.php". Check if it is a valid PHP file
In ParserAbstract.php line 161: Syntax error, unexpected T_EMPTY, expecting T_STRING on line 9
When using a PHP 8.1 enum with a reserved keyword e.g.
empty
as a case, infection will crash.Error message:
Enum example:
As far as I can tell, this is an issue with the nikic/PHP-Parser package but has been fixed in version 4.13.1.
See: nikic/PHP-Parser#807
Can I just create a PR updating the PHP parser package or is there something I should pay attention to/take care of?
The text was updated successfully, but these errors were encountered: