rectorphp/rector-doctrine

Classes constants `Doctrine\ORM\Query\Lexer::T_*` deprecated in favor of `Doctrine\ORM\Query\TokenType::T_*`

Closed this issue · 3 comments

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 ?

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

yes, I'm working on it.