Skip to content

Commit

Permalink
Laravel: Enforce visibility for PHPUnit setUp and tearDown methods
Browse files Browse the repository at this point in the history
  • Loading branch information
realodix committed Nov 21, 2024
1 parent 88e2123 commit 45ac6b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/RuleSet/Sets/Laravel.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ public function rules(): array
'ordered_interfaces' => true,
'ordered_traits' => true,
'php_unit_method_casing' => ['case' => 'snake_case'],
'php_unit_set_up_tear_down_visibility' => true,
'phpdoc_align' => ['align' => 'left', 'spacing' => ['param' => 2]],
'phpdoc_indent' => true,
'phpdoc_inline_tag_normalizer' => true,
Expand Down
1 change: 1 addition & 0 deletions src/RuleSet/Sets/Relax.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ public function mainRules(): array
*/
'not_operator_with_successor_space' => false,
'php_unit_method_casing' => false,
'php_unit_set_up_tear_down_visibility' => false,
'phpdoc_tag_type' => false,
'binary_operator_spaces' => [
'default' => 'single_space',
Expand Down

0 comments on commit 45ac6b8

Please sign in to comment.