Migrate to the new PHP CS Fixer config file

This commit is contained in:
Fabien Potencier
2021-05-12 09:11:44 +02:00
parent 83f26e402b
commit bded388664
+2 -2
View File
@@ -1,6 +1,6 @@
<?php
return PhpCsFixer\Config::create()
return (new PhpCsFixer\Config())
->setRules([
'@Symfony' => true,
'@Symfony:risky' => true,
@@ -16,5 +16,5 @@ return PhpCsFixer\Config::create()
'native_function_invocation' => ['include' => ['@compiler_optimized'], 'scope' => 'all'],
])
->setRiskyAllowed(true)
->setFinder(PhpCsFixer\Finder::create()->in(__DIR__))
->setFinder((new PhpCsFixer\Finder())->in(__DIR__))
;