povils/phpmnd

'0' and '1' (as strings) are considered to be magic numbers

Closed this issue · 2 comments

The documentation says

By default 0 and 1 are not considered to be magic numbers.

But when I use the --include-numeric-string option I get warnings for strings '0' and '1':

tests/bootstrap.php:5. Magic number: 1
  > 5| ini_set('display_errors', '1');

tests/bootstrap.php:7. Magic number: 0
  > 7| ini_set('display_startup_errors', '0');

Shouldn't '0' and '1' be considered as non-magic?

PHPMND version: b720469

Hey, thanks for the issue. Yes, I agree, it should not.

Solved with release 2.0.0