You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/PHPStan/Rules/Properties/UninitializedPropertyRuleTest.php
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -91,10 +91,18 @@ public function testRule(): void
91
91
'Access to an uninitialized property UninitializedProperty\InitializedInPublicSetterNonFinalClass::$foo.',
92
92
278,
93
93
],*/
94
+
[
95
+
'Class UninitializedProperty\SometimesInitializedInPrivateSetter has an uninitialized property $foo. Give it default value or assign it in the constructor.',
96
+
286,
97
+
],
94
98
[
95
99
'Access to an uninitialized property UninitializedProperty\SometimesInitializedInPrivateSetter::$foo.',
96
100
303,
97
101
],
102
+
[
103
+
'Class UninitializedProperty\EarlyReturn has an uninitialized property $foo. Give it default value or assign it in the constructor.',
0 commit comments