lint/refactor/rename-class-constant
Not in any preset. In Rector’s rector/php85 set. Unsafe fix: it can change behavior.
What it does
Replace defined class constants in their calls
Configuration
[lint.rules]
"refactor/rename-class-constant" = "error"
To skip it in some files or lines, add an override or an ignore comment.
Replaces
RenameClassConstFetch(rector)