8000 minor #20731 DX: Update PHP CS Fixer config file (keradus) · symfony/symfony@79e6896 · GitHub
[go: up one dir, main page]

Skip to content

Commit 79e6896

Browse files
committed
minor #20731 DX: Update PHP CS Fixer config file (keradus)
This PR was merged into the 2.7 branch. Discussion ---------- DX: Update PHP CS Fixer config file | Q | A | ------------- | --- | Branch? | 2.7 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | n/a | Fixed tickets | n/a | License | MIT | Doc PR | n/a For a good start, updated config for php cs fixer v2. I would guess that fabbot needs to be updated ;) Commits ------- a0e305b Update PHP CS Fixer config file
2 parents 7f85f6d + a0e305b commit 79e6896

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

.php_cs renamed to .php_cs.dist

Lines changed: 8 additions & 9 deletions
32AF
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
<?php
22

3-
return Symfony\CS\Config\Config::create()
4-
->setUsingLinter(false)
5-
->setUsingCache(true)
6-
->fixers(array(
7-
'long_array_syntax',
8-
'php_unit_construct',
9-
'php_unit_dedicate_assert',
3+
return PhpCsFixer\Config::create()
4+
->setRules(array(
5+
'@Symfony' => true,
6+
'@Symfony:risky' => true,
7+
'array_syntax' => array('syntax' => 'long'),
108
))
11-
->finder(
12-
Symfony\CS\Finder\DefaultFinder::create()
9+
->setRiskyAllowed(true)
10+
->setFinder(
11+
PhpCsFixer\Finder::create()
1312
->in(__DIR__)
1413
->exclude(array(
1514
// directories containing files with content that is autogenerated by `var_export`, which breaks CS in output code

0 commit comments

Comments
 (0)
0