File tree 3 files changed +5
-1
lines changed
3 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -13,12 +13,14 @@ public function __construct(array $entries)
13
13
$ this ->entries = $ entries ;
14
14
}
15
15
16
+ #[\ReturnTypeWillChange]
16
17
public function current ()
17
18
{
18
19
[$ key , $ value ] = \current ($ this ->entries );
19
20
return $ value ;
20
21
}
21
22
23
+ #[\ReturnTypeWillChange]
22
24
public function key ()
23
25
{
24
26
[$ key , $ value ] = \current ($ this ->entries );
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ public function __construct(array $values)
11
11
parent ::__construct (new \ArrayIterator ($ values ));
12
12
}
13
13
14
+ #[\ReturnTypeWillChange]
14
15
public function current ()
15
16
{
16
17
$ this ->history [] = __FUNCTION__ ;
@@ -23,6 +24,7 @@ public function next(): void
23
24
parent ::next ();
24
25
}
25
26
27
+ #[\ReturnTypeWillChange]
26
28
public function key ()
27
29
{
28
30
$ this ->history [] = __FUNCTION__ ;
Original file line number Diff line number Diff line change 3
3
4
4
class ThrowIterable implements \IteratorAggregate
5
5
{
6
- public function getIterator ()
6
+ public function getIterator (): \ Traversable
7
7
{
8
8
throw new \AssertionError ("Failed to assert that iterable was not used " );
9
9
}
You can’t perform that action at this time.
0 commit comments