PhpStorm 2019.2 Help

Code Inspection: Magic number

Reports "magic numbers", i.e. literal numeric constants used without declaration."Magic numbers" can result in code whose intention is extremely unclear, and may result in errors if a "magicnumber" is changed in one code location but not another. The numbers 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 0.0 and 1.0 are not reported by this inspection.

Last modified: 23 August 2019