diff --git a/php-cs-fixer b/php-cs-fixer index ea3bd66924c..6bd3f20f5ef 100755 --- a/php-cs-fixer +++ b/php-cs-fixer @@ -23,7 +23,12 @@ if (defined('HHVM_VERSION_ID')) { } else { exit(1); } -} elseif (!defined('PHP_VERSION_ID') || \PHP_VERSION_ID < 50600 || \PHP_VERSION_ID >= 80100) { +} elseif ( + !defined('PHP_VERSION_ID') + || \PHP_VERSION_ID === 80000 + || \PHP_VERSION_ID < 50600 + || \PHP_VERSION_ID >= 80100 +) { fwrite(STDERR, "PHP needs to be a minimum version of PHP 5.6.0 and maximum version of PHP 8.0.*.\n"); fwrite(STDERR, 'Current PHP version: '.PHP_VERSION.".\n");