llaville / php-compatinfo

Library that find out the minimum version and the extensions required for a piece of code to run
https://llaville.github.io/php-compatinfo/7.1/
Other
371 stars 21 forks source link

Anonymous class is detected as PHP 5.4 #269

Closed llaville closed 4 years ago

llaville commented 4 years ago

When running analyser:run command on tests/fixtures/sniffs/anonymous_classes.php of phpCompatInfo we get wrong results.

Actual:
Requires PHP 5.4.0 (min), PHP 5.4.0 (all)

Expected: Requires PHP 7.0.0alpha1 (min), PHP 7.0.0alpha1 (all)