Skip to content

Commit a0e305b

Browse files
committed
Update PHP CS Fixer config file
1 parent 5f4d8e9 commit a0e305b

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
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)