'0' and '1' (as strings) are considered to be magic numbers
Closed this issue · 2 comments
EvgenyOrekhov commented
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
povils commented
Hey, thanks for the issue. Yes, I agree, it should not.
povils commented
Solved with release 2.0.0