-
Notifications
You must be signed in to change notification settings - Fork 77
Open
Description
I have an issue with doctrine-ODM, particularly with this file https://github.com/doctrine/mongodb-odm/blob/2.6.x/lib/Doctrine/ODM/MongoDB/Aggregation/Stage/Match.php , checker failing with an error:
In LocateASTFromFiles.php line 41:
Parsing the file [/srv/app/vendor/doctrine/mongodb-odm/lib/Doctrine/ODM/MongoDB/Aggregation/Stage/GraphLookup/Match.php] resulted in an error: Syntax error, unexpected T_MATCH, expecting T_STRING on line 15
and it's because I'm using PHP 8.2 where match is a reserved word, I tried adding a file to a white list like this
"symbol-whitelist" : [
"null", "true", "false",
"static", "self", "parent",
"array", "string", "int", "float", "bool", "iterable", "callable", "void", "object",
"Doctrine\\ODM\\MongoDB\\Aggregation\\Stage\\GraphLookup\\Match"
],
but not sure if I'm doing it correctly or if it's possible at all, but anyway issue is still there. Is there a way to handle this? In general this file is deprecated and my app is working only checker failing
LastDragon-ru
Metadata
Metadata
Assignees
Labels
No labels