-
Notifications
You must be signed in to change notification settings - Fork 506
/
Copy pathLookahead.patch
52 lines (52 loc) · 1.11 KB
/
Lookahead.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
--- Lookahead.php 2017-01-10 11:34:47.000000000 +0100
+++ Lookahead.php 2021-10-30 16:35:30.000000000 +0200
@@ -93,7 +93,7 @@
*
* @return \Iterator
*/
- public function getInnerIterator()
+ public function getInnerIterator(): ?\Iterator
{
return $this->_iterator;
}
@@ -103,6 +103,7 @@
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function current()
{
return $this->_current;
@@ -113,6 +114,7 @@
*
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function key()
{
return $this->_key;
@@ -123,6 +125,7 @@
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function next()
{
$innerIterator = $this->getInnerIterator();
@@ -143,6 +146,7 @@
*
* @return void
*/
+ #[\ReturnTypeWillChange]
public function rewind()
{
$out = $this->getInnerIterator()->rewind();
@@ -156,7 +160,7 @@
*
* @return bool
*/
- public function valid()
+ public function valid(): bool
{
return $this->_valid;
}