phpstan/phpstan-deprecation-rules

Defining case-insensitive constants is deprecated as of PHP 7.3.0.

mglaman opened this issue · 2 comments

Follow up from phpstan/phpstan-src#589.

It'd be great to have a rule that caught usage of deprecated case-insensitive constants when analyzing with PHP 7.3 and 7.4.

AFAIK this is already reported by PHPStan.

Oh I haven't realized it's reported only on PHP 8.