buckets/.php-cs-fixer.dist.php

21 lines
661 B
PHP
Raw Normal View History

2026-06-15 01:15:21 +02:00
<?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');