File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 44
44
function testThrowIf (float |int $ foo , ?DateTime $ bar = null ): void
45
45
{
46
46
rescue (fn () => assertType ('never ' , throw_if (true , Exception::class)));
47
- assertType ('false ' , throw_if (false , Exception::class));
47
+ assertType ('false ' , throw_if (false , Exception::class)); // @phpstan-ignore deadCode.unreachable
48
48
assertType ('false ' , throw_if (empty ($ foo )));
49
49
throw_if (is_float ($ foo ));
50
50
assertType ('int ' , $ foo );
@@ -63,7 +63,7 @@ function testThrowUnless(float|int $foo, ?DateTime $bar = null): void
63
63
{
64
64
assertType ('true ' , throw_unless (true , Exception::class));
65
65
rescue (fn () => assertType ('never ' , throw_unless (false , Exception::class)));
66
- assertType ('true ' , throw_unless (empty ($ foo )));
66
+ assertType ('true ' , throw_unless (empty ($ foo ))); // @phpstan-ignore deadCode.unreachable
67
67
throw_unless (is_int ($ foo ));
68
68
assertType ('int ' , $ foo );
69
69
throw_unless ($ foo == false );
You can’t perform that action at this time.
0 commit comments