Skip to content

Commit 9d9fb56

Browse files
committed
Fix SplObjectStorage generic stub for PHP 8.4
1 parent f22f483 commit 9d9fb56

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

stubs/SplObjectStorage.stub

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@
55
* @template TData
66
*
77
* @template-implements Iterator<int, TObject>
8+
* @template-implements SeekableIterator<int, TObject>
89
* @template-implements ArrayAccess<TObject, TData>
910
*/
10-
class SplObjectStorage implements Countable, Iterator, Serializable, ArrayAccess
11+
class SplObjectStorage implements Countable, Iterator, SeekableIterator, Serializable, ArrayAccess
1112
{
1213

1314
/**

tests/PHPStan/Rules/Generics/ClassAncestorsRuleTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public function testRuleExtends(): void
108108
215,
109109
],
110110
[
111-
'Class ClassAncestorsExtends\FooObjectStorage @extends tag contains incompatible type ClassAncestorsExtends\FooObjectStorage&iterable<object>.',
111+
'Class ClassAncestorsExtends\FooObjectStorage @extends tag contains incompatible type ClassAncestorsExtends\FooObjectStorage.',
112112
226,
113113
],
114114
[

0 commit comments

Comments
 (0)