Inspectopedia
 
2024.3

Constant reassignment

Warning
New
Last modified: 03 December 2024

Reports reassignments of constants.

Since constants cannot be changed, such assignments will have no effect and will emit an E_NOTICE (in PHP 7.4 and earlier) or E_WARNING (in PHP 8.0 and later).