From bf782ecb38eddc5b6856552a536df4c965f3b0e4 Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Thu, 30 May 2019 16:12:14 +0200 Subject: [PATCH] Disable php_unit_mock_short_will_return rule of php-cs --- .php_cs.dist | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.php_cs.dist b/.php_cs.dist index 8523be6706..8cc2c0a05b 100644 --- a/.php_cs.dist +++ b/.php_cs.dist @@ -18,6 +18,8 @@ return PhpCsFixer\Config::create() 'native_function_invocation' => ['include' => ['@compiler_optimized'], 'scope' => 'namespaced'], // Part of future @Symfony ruleset in PHP-CS-Fixer To be removed from the config file once upgrading 'phpdoc_types_order' => ['null_adjustment' => 'always_last', 'sort_algorithm' => 'none'], + // Part of @Symfony:risky in PHP-CS-Fixer 2.15.0. Incompatible with PHPUnit 4 that is required for Symfony 3.4 + 'php_unit_mock_short_will_return' => false, ]) ->setRiskyAllowed(true) ->setFinder(