Requires PHP 7.3+ | PHP 8
This app will run PHP_CodeSniffer with phpcompatibility/php-compatibility on the M2 doc root
- Clone this repository OR download the compiled audit file to a location where it can access a Magento 2 installation OR
wget https://github.com/willtran/magento2-php-8-compatibility-check/raw/main/audit
andchmod u+x audit
- adjust --threads option for faster result
- Notes: does not work with symlinks
Description:
Check all module in an m2 application for PHP8 compatibility
Usage:
check:all [options] [--] <root-dir>
Arguments:
root-dir
Options:
--php-version[=PHP-VERSION] [default: "8.1"]
--threads[=THREADS] [default: "4"]
Sample: ./audit check:all /var/projects/magento2 --threads=16
+---------------------------------+----------------------------------------------------------+---------------+
| Module Name | Module Dir | Compatiblity |
+---------------------------------+----------------------------------------------------------+---------------+
| 'Justuno_Core' | vendor/justuno.com/core | OK |
| 'MSP_TwoFactorAuth' | vendor/msp/twofactorauth | OK |
| 'MagePal_Reindex' | vendor/magepal/magento2-reindex | OK |
| 'Vertex_AddressValidationApi' | vendor/vertexinc/module-address-validation-api | OK |
...
| vendor/snowdog/theme-blank-sass | vendor/snowdog/theme-blank-sass | OK |
| 'Justuno_M2' | vendor/justuno.com/m2 | General error |
+---------------------------------+----------------------------------------------------------+---------------+