Skip to content

Commit fc6656e

Browse files
committed
Fix some more ext/spl return types
Closes GH-7242
1 parent c6b7f6c commit fc6656e

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: da35c3e48b3a09f5f013fdd760ddab6bdfb37967 */
2+
* Stub hash: a56f02ad7b9578713f0d37b2cf3d95853a4ea45e */
33

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

0 commit comments

Comments
 (0)