Skip to content

Commit 9531b29

Browse files
committed
Fix test
1 parent ea62732 commit 9531b29

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

tests/PHPStan/Rules/Classes/InstantiationRuleTest.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,19 @@ public function testBug9946(): void
453453
$this->analyse([__DIR__ . '/data/bug-9946.php'], []);
454454
}
455455

456+
#[RequiresPhp('< 8.0')]
456457
public function testBug10324(): void
458+
{
459+
$this->analyse([__DIR__ . '/data/bug-10324.php'], [
460+
[
461+
'Parameter #3 $flags of class RecursiveIteratorIterator constructor expects 0|16, 2 given.',
462+
23,
463+
],
464+
]);
465+
}
466+
467+
#[RequiresPhp('>= 8.0')]
468+
public function testBug10324On80(): void
457469
{
458470
$this->analyse([__DIR__ . '/data/bug-10324.php'], [
459471
[

0 commit comments

Comments
 (0)