Skip to content

Commit

Permalink
Fix SplObjectStorage generic stub for PHP 8.4
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Sep 10, 2024
1 parent f22f483 commit 9d9fb56
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion stubs/SplObjectStorage.stub
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@
* @template TData
*
* @template-implements Iterator<int, TObject>
* @template-implements SeekableIterator<int, TObject>
* @template-implements ArrayAccess<TObject, TData>
*/
class SplObjectStorage implements Countable, Iterator, Serializable, ArrayAccess
class SplObjectStorage implements Countable, Iterator, SeekableIterator, Serializable, ArrayAccess
{

/**
Expand Down
2 changes: 1 addition & 1 deletion tests/PHPStan/Rules/Generics/ClassAncestorsRuleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public function testRuleExtends(): void
215,
],
[
'Class ClassAncestorsExtends\FooObjectStorage @extends tag contains incompatible type ClassAncestorsExtends\FooObjectStorage&iterable<object>.',
'Class ClassAncestorsExtends\FooObjectStorage @extends tag contains incompatible type ClassAncestorsExtends\FooObjectStorage.',
226,
],
[
Expand Down

0 comments on commit 9d9fb56

Please sign in to comment.