-
-
Notifications
You must be signed in to change notification settings - Fork 168
Expand file tree
/
Copy path.php-cs-fixer.php
More file actions
28 lines (27 loc) · 1002 Bytes
/
.php-cs-fixer.php
File metadata and controls
28 lines (27 loc) · 1002 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php declare(strict_types=1);
return (new PhpCsFixer\Config())
->setUnsupportedPhpVersionAllowed(true)
->setRules([
'@Symfony' => true,
'@Symfony:risky' => true,
'@PHP8x1Migration' => true,
'@PHP8x1Migration:risky' => true,
'@PHPUnit10x0Migration:risky' => true,
'array_syntax' => ['syntax' => 'short'],
'blank_line_after_opening_tag' => false,
'fopen_flags' => false,
'linebreak_after_opening_tag' => false,
'no_superfluous_phpdoc_tags' => ['remove_inheritdoc' => true],
'nullable_type_declaration_for_default_null_value' => ['use_nullable_type_declaration' => true],
'single_line_empty_body' => true,
])
->setRiskyAllowed(true)
->setFinder(
(new PhpCsFixer\Finder())
->in(__DIR__.'/lib')
->in(__DIR__.'/tests')
->append([
__DIR__.'/rector.php',
__DIR__.'/.github/patch-packages.php',
])
);