Is there any way to test php code the same way a compile phase does in other languages to catch obvious mistakes from hitting your users?
> find . -name "*.php" -print0 | xargs -0 -n1 -P8 php -l | grep -v "No syntax errors detected"
Other potentially useful tools:
- PHP_CodeSniffer (https://github.com/squizlabs/PHP_CodeSniffer)
- GrumPHP (https://github.com/phpro/grumphp)
- PHP Mess Detector (https://phpmd.org/)