12345678910111213141516171819202122232425 |
- <?php
- return (new PhpCsFixer\Config())
- ->setRules([
- '@Symfony' => true,
- '@Symfony:risky' => true,
- '@PHPUnit48Migration:risky' => true,
- 'php_unit_no_expectation_annotation' => false,
- 'array_syntax' => ['syntax' => 'short'],
- 'fopen_flags' => false,
- 'ordered_imports' => true,
- 'protected_to_private' => false,
-
- 'native_function_invocation' => ['include' => ['@compiler_optimized'], 'scope' => 'namespaced'],
-
- 'phpdoc_types_order' => ['null_adjustment' => 'always_last', 'sort_algorithm' => 'none'],
- ])
- ->setRiskyAllowed(true)
- ->setFinder(
- (new PhpCsFixer\Finder())
- ->in(__DIR__)
- ->exclude('vendor')
- ->name('*.php')
- )
- ;
|