Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Leverage Lexer's Token type #9549

Merged
merged 1 commit into from
Feb 28, 2022

Conversation

derrabus
Copy link
Member

@derrabus derrabus commented Feb 28, 2022

Follows doctrine/lexer#64

The Lexer now exposes a Psalm type for the token array. Since that array structure is used by the parser internally, it makes sense to reuse it to make Psalm a little smarter.

@derrabus derrabus added this to the 2.12.0 milestone Feb 28, 2022
@derrabus derrabus force-pushed the improvement/leverage-token-type branch from 9d1f10b to 548a955 Compare February 28, 2022 14:13
lib/Doctrine/ORM/Query/Parser.php Show resolved Hide resolved
psalm-baseline.xml Show resolved Hide resolved
@derrabus derrabus force-pushed the improvement/leverage-token-type branch from 548a955 to f82db6a Compare February 28, 2022 19:27
@derrabus
Copy link
Member Author

I've followed your suggestion and bumped Lexer. I guess it's better for our sanity if we keep the version range small here. After all, ORM and Lexer are very tightly coupled.

@greg0ire
Copy link
Member

Not sure why Codecov hangs, but let's merge.

@greg0ire greg0ire merged commit 3849aed into doctrine:2.12.x Feb 28, 2022
@derrabus derrabus deleted the improvement/leverage-token-type branch February 28, 2022 21:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants