Skip to content

Commit

Permalink
Fix false positive when extending SplObjectStorage on PHP < 8.4
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Sep 10, 2024
1 parent a4774be commit fd25c27
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,9 @@ public function testEnums(): void
]);
}

public function testBug11665(): void
{
$this->analyse([__DIR__ . '/data/bug-11665.php'], []);
}

}
7 changes: 7 additions & 0 deletions tests/PHPStan/Rules/Methods/data/bug-11665.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?php

namespace Bug11665;

class Schema extends \SplObjectStorage
{
}

0 comments on commit fd25c27

Please sign in to comment.