Skip to content

Does not work with Lexer v1 #299

@jackbentley

Description

@jackbentley

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions