Skip to content

Commit 7ae54b4

Browse files
minor symfony#31737 Disable php_unit_mock_short_will_return rule of php-cs (nicolas-grekas)
This PR was merged into the 3.4 branch. Discussion ---------- Disable php_unit_mock_short_will_return rule of php-cs | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - Commits ------- bf782ec Disable php_unit_mock_short_will_return rule of php-cs
2 parents 31c3c59 + bf782ec commit 7ae54b4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.php_cs.dist

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ return PhpCsFixer\Config::create()
1818
'native_function_invocation' => ['include' => ['@compiler_optimized'], 'scope' => 'namespaced'],
1919
// Part of future @Symfony ruleset in PHP-CS-Fixer To be removed from the config file once upgrading
2020
'phpdoc_types_order' => ['null_adjustment' => 'always_last', 'sort_algorithm' => 'none'],
21+
// Part of @Symfony:risky in PHP-CS-Fixer 2.15.0. Incompatible with PHPUnit 4 that is required for Symfony 3.4
22+
'php_unit_mock_short_will_return' => false,
2123
])
2224
->setRiskyAllowed(true)
2325
->setFinder(

0 commit comments

Comments
 (0)