Skip to content

Commit ce876c8

Browse files
committed
Add PhpUnitMockShortWillReturnFixer to @symfony:risky rule set
1 parent c12abbc commit ce876c8

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1357,7 +1357,7 @@ Choose from the list of available rules:
13571357
- ``target`` (``'5.4'``, ``'5.5'``, ``'newest'``): target version of PHPUnit; defaults to
13581358
``'newest'``
13591359

1360-
* **php_unit_mock_short_will_return**
1360+
* **php_unit_mock_short_will_return** [@Symfony:risky, @PhpCsFixer:risky]
13611361

13621362
Usage of PHPUnit's mock e.g. ``->will($this->returnValue(..))`` must be
13631363
replaced by its shorter equivalent such as ``->willReturn(...)``.

src/RuleSet.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@ final class RuleSet implements RuleSetInterface
199199
'use_escape_sequences_in_strings' => false,
200200
],
201201
'php_unit_construct' => true,
202+
'php_unit_mock_short_will_return' => true,
202203
'psr4' => true,
203204
'self_accessor' => true,
204205
'set_type_to_cast' => true,

0 commit comments

Comments
 (0)