Skip to content

Commit fb265f0

Browse files
committed
Laravel: Enforce visibility for PHPUnit setUp and tearDown methods
laravel/pint@6ef7e3c
1 parent 88e2123 commit fb265f0

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/RuleSet/Sets/Laravel.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use Realodix\Relax\RuleSet\AbstractRuleSet;
66

77
/**
8-
* Latest commit 72f3117
8+
* Latest commit 6ef7e3c
99
* https://github.com/laravel/pint/blob/main/resources/presets/laravel.php
1010
*/
1111
final class Laravel extends AbstractRuleSet
@@ -124,6 +124,7 @@ public function rules(): array
124124
'ordered_interfaces' => true,
125125
'ordered_traits' => true,
126126
'php_unit_method_casing' => ['case' => 'snake_case'],
127+
'php_unit_set_up_tear_down_visibility' => true,
127128
'phpdoc_align' => ['align' => 'left', 'spacing' => ['param' => 2]],
128129
'phpdoc_indent' => true,
129130
'phpdoc_inline_tag_normalizer' => true,

src/RuleSet/Sets/Relax.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ public function mainRules(): array
5858
*/
5959
'not_operator_with_successor_space' => false,
6060
'php_unit_method_casing' => false,
61+
'php_unit_set_up_tear_down_visibility' => false,
6162
'phpdoc_tag_type' => false,
6263
'binary_operator_spaces' => [
6364
'default' => 'single_space',

0 commit comments

Comments
 (0)