Classes constants `Doctrine\ORM\Query\Lexer::T_*` deprecated in favor of `Doctrine\ORM\Query\TokenType::T_*`
Closed this issue · 3 comments
julienfastre commented
According to the upgrade guide, class constants Doctrine\ORM\Query\Lexer::T_*
are now deprecated, in favor of Doctrine\ORM\Query\TokenType::T_*
.
Can we write a rector rule for this ?
samsonasik commented
existing RenameClassConstFetchRector
configured rule can be used for that imo, and register to specific rule set, for example, using RenameClassConstFetchRector
, ref https://getrector.com/demo/32a9f4b8-817d-4e28-b792-ce751f953c2d
samsonasik commented
@julienfastre could you create a PR on it under https://github.com/rectorphp/rector-doctrine/blob/main/config/sets/doctrine-orm-29.php with RenameClassConstFetchRector
configurable, eg https://getrector.com/demo/32a9f4b8-817d-4e28-b792-ce751f953c2d ?
Thank you.
julienfastre commented
yes, I'm working on it.