-
-
Notifications
You must be signed in to change notification settings - Fork 56
Description
Since the added support of Lexer v3, it's broken support of Lexer v1.
doctrine/orm v2.14 supports the usage of doctrine/lexer ^1.2.3. Thus, this library allows the installation of it. However, it looks like the code does not support it.
Specifically, BaseVariadicFunction tries to access $lexer->lookahead in it's newer object form but it's an array in < v2.
I suppose need to either conflict with the lower lexer version and prevent install; or add support for it
postgresql-for-doctrine/src/MartinGeorgiev/Doctrine/ORM/Query/AST/Functions/BaseVariadicFunction.php
Line 33 in 92be1de
| if ($lexer->lookahead?->type === null) { |
https://github.com/doctrine/lexer/blob/2.0.0/src/AbstractLexer.php#L153
https://github.com/doctrine/lexer/blob/1.3.x/src/AbstractLexer.php#L159