Skip to content

Commit

Permalink
Fix some more ext/spl return types
Browse files Browse the repository at this point in the history
Closes phpGH-7242
  • Loading branch information
kocsismate committed Jul 15, 2021
1 parent c6b7f6c commit fc6656e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions ext/spl/spl_iterators.stub.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@

class EmptyIterator implements Iterator
{
/** @return void */
/** @return mixed */
public function current() {}

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

/** @return void */
/** @return mixed */
public function key() {}

/** @return bool */
Expand Down Expand Up @@ -109,7 +109,7 @@ public function getMaxDepth() {}

interface OuterIterator extends Iterator
{
/** @return Iterator */
/** @return Iterator|null */
public function getInnerIterator();
}

Expand Down Expand Up @@ -303,7 +303,7 @@ public function current() {}
/** @return void */
public function next() {}

/** @return int */
/** @return int|null */
public function getIteratorIndex() {}

/** @return ArrayIterator */
Expand Down
2 changes: 1 addition & 1 deletion ext/spl/spl_iterators_arginfo.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* This is a generated file, edit the .stub.php file instead.
* Stub hash: da35c3e48b3a09f5f013fdd760ddab6bdfb37967 */
* Stub hash: a56f02ad7b9578713f0d37b2cf3d95853a4ea45e */

ZEND_BEGIN_ARG_INFO_EX(arginfo_class_EmptyIterator_current, 0, 0, 0)
ZEND_END_ARG_INFO()
Expand Down

0 comments on commit fc6656e

Please sign in to comment.