I am running phpcs with the following command:
php -d memory_limit=-1 vendor/bin/phpcs -v -p . --standard=PHPCompatibility --extensions=php --colors --runtime-set testVersion 8.1
However, it is only finding deprecation and errors for PHP 7.4 and below. If I set testVersion
to any PHP version of 7.4 or below, it works as expected. With the above command, it only finds compatibility issues for 7.4.
To test, I added a new deprecation and removed function from 8.1 and it does not detect them.