Skip to content

Commit 5796511

Browse files
committed
test with userland comparator
1 parent e82ccf4 commit 5796511

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

tests/PHPStan/Analyser/nsrt/bug-10422.php

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -37,19 +37,3 @@ function testSimple(): void
3737
}
3838
assertType(Foo::class, $test);
3939
}
40-
41-
function testWithElseIf(): void
42-
{
43-
$test = createOrNotObject();
44-
45-
$error = '';
46-
if (!$test) {
47-
$error = 'yes';
48-
} else if ($test->other()) {
49-
$error = 'yes';
50-
}
51-
if ($error) {
52-
return;
53-
}
54-
assertType(Foo::class . '|null', $test); // Should be Foo, see https://github.com/phpstan/phpstan/issues/10422
55-
}

0 commit comments

Comments
 (0)