20 lines
661 B
PHP
20 lines
661 B
PHP
<?php
|
|
|
|
$finder = (new PhpCsFixer\Finder())
|
|
->in(__DIR__)
|
|
->exclude('var')
|
|
// Auto-generated Symfony config files — not hand-written source, and the
|
|
// risky ruleset mangles prose like "@type" inside their doc comments.
|
|
->notPath('config/bundles.php')
|
|
->notPath('config/reference.php');
|
|
|
|
return (new PhpCsFixer\Config())
|
|
->setRiskyAllowed(true)
|
|
// PHP 8.4 may be newer than the fixer officially supports; allow it explicitly.
|
|
->setUnsupportedPhpVersionAllowed(true)
|
|
->setRules([
|
|
'@Symfony' => true,
|
|
'@Symfony:risky' => true,
|
|
])
|
|
->setFinder($finder)
|
|
->setCacheFile('var/.php-cs-fixer.cache');
|