Skip to content

Commit

Permalink
Move to php-cs-fixer 2.14.2 for PHP 7.3 compat & improved CS
Browse files Browse the repository at this point in the history
  • Loading branch information
andrerom committed Apr 30, 2019
1 parent a7a2dd3 commit 0df293d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .php_cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ return PhpCsFixer\Config::create()
'@Symfony' => true,
'@Symfony:risky' => true,
'concat_space' => ['spacing' => 'one'],
'array_syntax' => false,
'simplified_null_return' => false,
'phpdoc_align' => false,
'phpdoc_separation' => false,
Expand All @@ -19,6 +18,11 @@ return PhpCsFixer\Config::create()
'space_after_semicolon' => false,
'yoda_style' => false,
'no_break_comment' => false,

// 2019 style updates with cs-fixer 2.14, all above are in sync with kernel
'@PHPUnit57Migration:risky' => true,
'array_syntax' => ['syntax' => 'short'],
'static_lambda' => true,
])
->setRiskyAllowed(true)
->setFinder(
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"phpunit/phpunit": "^5.7.27",
"matthiasnoback/symfony-dependency-injection-test": "^1.2.0",
"ezsystems/ezplatform-solr-search-engine": "^1.5.7",
"friendsofphp/php-cs-fixer": "~2.7.5"
"friendsofphp/php-cs-fixer": "v2.14.2"
},
"autoload": {
"psr-4": {
Expand Down

0 comments on commit 0df293d

Please sign in to comment.