isNextAllAnySome uses doctrine/lexel:1 syntax and throws PHP Error #7156

Open
opened 2026-01-22 15:45:42 +01:00 by admin · 0 comments
Owner

Originally created by @L3tum on GitHub (May 22, 2023).

Bug Report

Q A
BC Break yes?
Version 2.15.1

Summary

Parser.php#585 uses an array-key based access pattern for Lexer Tokens, while all other accesses were changed in 603ab9a185.
This currently results in the following error:

[Error] Cannot use object of type Doctrine\Common\Lexer\Token as array

Current behavior

The object property is accessed via array-access. This blocks basically any attempt to update to any version that contains the commit above.

How to reproduce

Install latest version of this library. Not sure which configuration/context triggers the exact line of code, but it's obviously wrong.

Expected behavior

It works.

Originally created by @L3tum on GitHub (May 22, 2023). ### Bug Report | Q | A |------------ | ------ | BC Break | yes? | Version | 2.15.1 #### Summary [Parser.php#585](https://github.com/doctrine/orm/blob/2.15.x/lib/Doctrine/ORM/Query/Parser.php#L585) uses an array-key based access pattern for Lexer Tokens, while all other accesses were changed in 603ab9a185ff8c7fd93801e528da63fee0e8c797. This currently results in the following error: > [Error] Cannot use object of type Doctrine\Common\Lexer\Token as array #### Current behavior The object property is accessed via array-access. This blocks basically any attempt to update to any version that contains the commit above. #### How to reproduce Install latest version of this library. Not sure which configuration/context triggers the exact line of code, but it's obviously wrong. #### Expected behavior It works.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#7156