Phpmnd Versions Save

PHP Magic Number Detector

v2.3.0

3 years ago
  • Support PHP 7.3 and PHP 7.4

v2.2.0

4 years ago
  • Add default ignore functions (intval, strval and floatval)
  • Fix negative number whitelisting
  • Ignore the negative value if the scalar does not have a value field
  • Allow multiple files and directories

v2.1.0

5 years ago
  • Check magic numbers in constant arrays.
  • Catch array[magic_number]
  • Whitelist option. Link to a file containing filenames to search

v2.0.0

6 years ago
  • Update dependencies. Required PHP 7.1
  • Add support for negative numbers.
  • Ignore '0' and '1' by default.
  • Add XML report output
  • Option for allowing array mapping when using array extension
  • Option for including numeric strings

v1.1.1

7 years ago
  • Fix exit code

v1.1.0

7 years ago
  • Add --non-zero-exit-on-violation option to return non zero exit code when there are magic number in the codebase.
  • Add --hint option suggest replacements for magic numbers.
  • Add more flexibility to extensions. 'all' option and possibility for removal with minus sign.
  • Add --suffixes option.
  • Add PHAR build support with Box.

v1.0.3

7 years ago
  • Add --strings option to include strings literals in code analysis.
  • Add --ignore-strings option to ignore strings when using strings opton.

v1.0.2

7 years ago
  • Add --exclude-path option
  • Add --exclude-name option
  • Add --ignore-funcs option
  • Add total magic number count in output result

v1.0.1

7 years ago
  • Ignore Magic numbers in constants when there is operation. Example
const HOUR = 60 * 60;
  • Minor style fixes

v1.0.0

7 years ago