Scan PHP code for compatibility with PHP 8

Searching for these same terms PHP code scanner: https://github.com/squizlabs/PHP_CodeSniffer

with: https://github.com/PHPCompatibility/PHPCompatibility

To install on your site—it is 2022 going on 2023 so you should be using composer—run this command:

composer require --dev phpcompatibility/php-compatibility:dev-develop

For those of us on DDEV who want to blindly copy and paste, just throw a DDEV in front: ddev composer require --dev phpcompatibility/php-compatibility:dev-develop

Again for DDEV people, do ddev ssh first and then:

./vendor/bin/phpcs -p docroot/modules/custom/ --standard=PHPCompatibility

That will list any