File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
tests/PHPStan/Rules/Exceptions Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -23,27 +23,27 @@ public function testRule(): void
23
23
$ this ->analyse (
24
24
[__DIR__ . '/data/throw-values.php ' ],
25
25
[
26
- /* [
26
+ [
27
27
'Invalid type int to throw. ' ,
28
28
29 ,
29
29
],
30
30
[
31
- 'Invalid type ThrowValues \InvalidException to throw.',
31
+ 'Invalid type ThrowExprValues \InvalidException to throw. ' ,
32
32
32 ,
33
33
],
34
34
[
35
- 'Invalid type ThrowValues \InvalidInterfaceException to throw.',
35
+ 'Invalid type ThrowExprValues \InvalidInterfaceException to throw. ' ,
36
36
35 ,
37
37
],
38
38
[
39
39
'Invalid type Exception|null to throw. ' ,
40
40
38 ,
41
41
],
42
42
[
43
- 'Throwing object of an unknown class ThrowValues \NonexistentClass.',
43
+ 'Throwing object of an unknown class ThrowExprValues \NonexistentClass. ' ,
44
44
44 ,
45
45
'Learn more at https://phpstan.org/user-guide/discovering-symbols ' ,
46
- ],*/
46
+ ],
47
47
[
48
48
'Invalid type int to throw. ' ,
49
49
65 ,
@@ -64,10 +64,10 @@ public function testRuleWithNullsafeVariant(): void
64
64
}
65
65
66
66
$ this ->analyse ([__DIR__ . '/data/throw-values-nullsafe.php ' ], [
67
- /* [
67
+ [
68
68
'Invalid type Exception|null to throw. ' ,
69
69
17 ,
70
- ],*/
70
+ ],
71
71
]);
72
72
}
73
73
You can’t perform that action at this time.
0 commit comments