Skip to content

Commit fae7cec

Browse files
committed
Merge branch 'PHP-8.0'
* PHP-8.0: Fix some more ext/spl return types
2 parents 29e5e47 + fc6656e commit fae7cec

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

ext/spl/spl_iterators.stub.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44

55
class EmptyIterator implements Iterator
66
{
7-
/** @return void */
7+
/** @return mixed */
88
public function current() {}
99

1010
/** @return void */
1111
public function next() {}
1212

13-
/** @return void */
13+
/** @return mixed */
1414
public function key() {}
1515

1616
/** @return bool */
@@ -109,7 +109,7 @@ public function getMaxDepth() {}
109109

110110
interface OuterIterator extends Iterator
111111
{
112-
/** @return Iterator */
112+
/** @return Iterator|null */
113113
public function getInnerIterator();
114114
}
115115

@@ -303,7 +303,7 @@ public function current() {}
303303
/** @return void */
304304
public function next() {}
305305

306-
/** @return int */
306+
/** @return int|null */
307307
public function getIteratorIndex() {}
308308

309309
/** @return ArrayIterator */

ext/spl/spl_iterators_arginfo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* This is a generated file, edit the .stub.php file instead.
2-
* Stub hash: de49628718b5fff1a3b2516cc89108e01b67c312 */
2+
* Stub hash: e2b69f8f12c782da28c95f16e04483bd6588e6ab */
33

44
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_EmptyIterator_current, 0, 0, 0)
55
ZEND_END_ARG_INFO()

0 commit comments

Comments
 (0)