We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9abfb2c commit 030dbf8Copy full SHA for 030dbf8
src/ObjectWrapper.php
@@ -10,6 +10,7 @@
10
use ArrayAccess;
11
use Paysera\Component\ObjectWrapper\Exception\InvalidItemTypeException;
12
use Paysera\Component\ObjectWrapper\Exception\MissingItemException;
13
+use Traversable;
14
15
class ObjectWrapper implements ArrayAccess, IteratorAggregate
16
{
@@ -74,8 +75,7 @@ public function offsetUnset($offset): void
74
75
throw new RuntimeException('Modifying ObjectWrapper is not allowed');
76
}
77
- #[\ReturnTypeWillChange]
78
- public function getIterator()
+ public function getIterator(): Traversable
79
80
return new ArrayIterator($this->data);
81
0 commit comments