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

Drop Lexer 1 #465

Merged
merged 1 commit into from Dec 17, 2022
Merged

Drop Lexer 1 #465

merged 1 commit into from Dec 17, 2022

Conversation

greg0ire
Copy link
Member

@greg0ire greg0ire commented Dec 16, 2022

This is not a big deal because doctrine/lexer 1 has the same version constraints as doctrine/lexer 2.
Note that I'm removing the BC-layer for DocLexer::peek() and DocLexer::glimpse(): in retrospect, I think it was a bad idea because there was already a BC-break with DocLexer::$lookahead and DocLexer::$token.

If you don't think that is acceptable, let me know and I will retarget to 2.0.x (and release it in a short amount of time).

@greg0ire
Copy link
Member Author

🤔 now I remember #462 and I think it might be a bad idea to do this on 1.x… php-cs-fixer seems to be using the DocLexer directly: https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/master/src/Doctrine/Annotation/Tokens.php#L61

Let's not shy away from a new major.

@greg0ire greg0ire changed the base branch from 1.15.x to 2.0.x December 16, 2022 12:14
This is not a big deal because doctrine/lexer 1 has the same version
constraints as doctrine/lexer 2.
Note that I'm removing the BC-layer for DocLexer::peek() and DocLexer::glimpse():
in retrospect, I think it was a bad idea because there was already a
BC-break with DocLexer::$lookahead and DocLexer::$token.
@greg0ire greg0ire merged commit e29955f into doctrine:2.0.x Dec 17, 2022
@greg0ire greg0ire deleted the drop-lexer-1 branch December 17, 2022 09:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants