mirror of
https://github.com/twigphp/Twig.git
synced 2026-10-25 13:16:31 +00:00
463ef4018d
* 3.x: Update CHANGELOG Add `html_attr_relaxed` escaping strategy re-add mixed return type Support short-circuiting in null-safe operator chains Add support for renaming variables in object destructuring Update .gitattributes to remove splitsh.json Fix intro for operator precedence table ?
28 lines
996 B
PHP
28 lines
996 B
PHP
<?php
|
|
|
|
use PhpCsFixer\Config;
|
|
use PhpCsFixer\Finder;
|
|
use PhpCsFixer\Runner\Parallel\ParallelConfigFactory;
|
|
|
|
return (new Config())
|
|
->setRules([
|
|
'@Symfony' => true,
|
|
'@Symfony:risky' => true,
|
|
'@PHPUnit75Migration:risky' => true,
|
|
'php_unit_dedicate_assert' => ['target' => '5.6'],
|
|
'array_syntax' => ['syntax' => 'short'],
|
|
'php_unit_fqcn_annotation' => true,
|
|
'no_unreachable_default_argument_value' => false,
|
|
'braces' => ['allow_single_line_closure' => true],
|
|
'heredoc_to_nowdoc' => false,
|
|
'single_line_throw' => false,
|
|
'phpdoc_to_comment' => ['ignored_tags' => ['var']],
|
|
'ordered_imports' => true,
|
|
'phpdoc_types_order' => ['null_adjustment' => 'always_last', 'sort_algorithm' => 'none'],
|
|
'no_superfluous_phpdoc_tags' => ['allow_mixed' => true],
|
|
])
|
|
->setRiskyAllowed(true)
|
|
->setParallelConfig(ParallelConfigFactory::detect())
|
|
->setFinder((new Finder())->in(__DIR__))
|
|
;
|