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 4444function testThrowIf (float |int $ foo , ?DateTime $ bar = null ): void
4545{
4646 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
4848 assertType ('false ' , throw_if (empty ($ foo )));
4949 throw_if (is_float ($ foo ));
5050 assertType ('int ' , $ foo );
@@ -63,7 +63,7 @@ function testThrowUnless(float|int $foo, ?DateTime $bar = null): void
6363{
6464 assertType ('true ' , throw_unless (true , Exception::class));
6565 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
6767 throw_unless (is_int ($ foo ));
6868 assertType ('int ' , $ foo );
6969 throw_unless ($ foo == false );
You can’t perform that action at this time.
0 commit comments