Skip to content

Commit 77ca233

Browse files
committed
Fix ThrowExprTypeRuleTest
1 parent b147296 commit 77ca233

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

tests/PHPStan/Rules/Exceptions/ThrowExprTypeRuleTest.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,27 +23,27 @@ public function testRule(): void
2323
$this->analyse(
2424
[__DIR__ . '/data/throw-values.php'],
2525
[
26-
/*[
26+
[
2727
'Invalid type int to throw.',
2828
29,
2929
],
3030
[
31-
'Invalid type ThrowValues\InvalidException to throw.',
31+
'Invalid type ThrowExprValues\InvalidException to throw.',
3232
32,
3333
],
3434
[
35-
'Invalid type ThrowValues\InvalidInterfaceException to throw.',
35+
'Invalid type ThrowExprValues\InvalidInterfaceException to throw.',
3636
35,
3737
],
3838
[
3939
'Invalid type Exception|null to throw.',
4040
38,
4141
],
4242
[
43-
'Throwing object of an unknown class ThrowValues\NonexistentClass.',
43+
'Throwing object of an unknown class ThrowExprValues\NonexistentClass.',
4444
44,
4545
'Learn more at https://phpstan.org/user-guide/discovering-symbols',
46-
],*/
46+
],
4747
[
4848
'Invalid type int to throw.',
4949
65,
@@ -64,10 +64,10 @@ public function testRuleWithNullsafeVariant(): void
6464
}
6565

6666
$this->analyse([__DIR__ . '/data/throw-values-nullsafe.php'], [
67-
/*[
67+
[
6868
'Invalid type Exception|null to throw.',
6969
17,
70-
],*/
70+
],
7171
]);
7272
}
7373

0 commit comments

Comments
 (0)