diff --git a/.php_cs b/.php_cs index 74cfb3d9..96697856 100644 --- a/.php_cs +++ b/.php_cs @@ -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, @@ -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( diff --git a/composer.json b/composer.json index d0f815f0..28c0ca10 100644 --- a/composer.json +++ b/composer.json @@ -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": {