Skip to content

Commit 45f069f

Browse files
Add test
1 parent 347eca4 commit 45f069f

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

tests/PHPStan/Rules/Comparison/data/bug-14534.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,12 @@ function test(\SplFileObject $spl): bool
1010

1111
return false;
1212
}
13+
14+
function test2(\SplTempFileObject $spl): bool
15+
{
16+
if ($spl->key() === 1) {
17+
return $spl->key() === 1;
18+
}
19+
20+
return false;
21+
}

0 commit comments

Comments
 (0)