Skip to content

Commit 44f8553

Browse files
committed
Fix PHPStan integrations
Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
1 parent fc4cef4 commit 44f8553

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

types/Support/Helpers.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
function 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);

0 commit comments

Comments
 (0)