mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-17 21:07:18 +00:00
Migrate to the new PHP CS Fixer config file
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
return PhpCsFixer\Config::create()
|
return (new PhpCsFixer\Config())
|
||||||
->setRules([
|
->setRules([
|
||||||
'@Symfony' => true,
|
'@Symfony' => true,
|
||||||
'@Symfony:risky' => true,
|
'@Symfony:risky' => true,
|
||||||
@@ -16,5 +16,5 @@ return PhpCsFixer\Config::create()
|
|||||||
'native_function_invocation' => ['include' => ['@compiler_optimized'], 'scope' => 'all'],
|
'native_function_invocation' => ['include' => ['@compiler_optimized'], 'scope' => 'all'],
|
||||||
])
|
])
|
||||||
->setRiskyAllowed(true)
|
->setRiskyAllowed(true)
|
||||||
->setFinder(PhpCsFixer\Finder::create()->in(__DIR__))
|
->setFinder((new PhpCsFixer\Finder())->in(__DIR__))
|
||||||
;
|
;
|
||||||
Reference in New Issue
Block a user