Symfony 7: Code validation
php-cs-fixer
- default for Symfony;
- not compatible with
squizlabs/php_codesniffer
, so have to choose one;
composer require cs-fixer-shim
./vendor/bin/php-cs-fixer check --verbose
./vendor/bin/php-cs-fixer fix --verbose
WSC coding standards
--ignore=./config/bundles.php
(Symfony recreates the file, not add to it, each time a bundle is installed);