Skip to content

Commit 53b1634

Browse files
VincentLangletstaabm
authored andcommitted
Add assert
1 parent 03a0d6b commit 53b1634

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
function removeFromParent(?DOMNode $node): void {
1111
$node?->parentNode?->removeChild($node);
1212
assertType('DOMNode|null', $node);
13+
assertType('DOMNode|null', $node?->parentNode);
1314
}
1415

1516
function testNarrowing(?DOMNode $node): void {

0 commit comments

Comments
 (0)