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