Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 79e6896

Browse filesBrowse 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
Copy full SHA for 79e6896

File tree

Expand file treeCollapse file tree

1 file changed

+8
-9
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+8
-9
lines changed

‎.php_cs renamed to ‎.php_cs.dist

Copy file name to clipboardExpand all lines: .php_cs.dist
+8-9Lines changed: 8 additions & 9 deletions
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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.