From 605894131bc3290029e10a7f31492f91d581e835 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1t=C3=A9=20Kocsis?= Date: Wed, 14 Jul 2021 18:11:40 +0200 Subject: [PATCH] Fix some more ext/spl return types --- ext/spl/spl_iterators.stub.php | 8 ++++---- ext/spl/spl_iterators_arginfo.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ext/spl/spl_iterators.stub.php b/ext/spl/spl_iterators.stub.php index 79ba4609c837e..373f8c3238f8b 100644 --- a/ext/spl/spl_iterators.stub.php +++ b/ext/spl/spl_iterators.stub.php @@ -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 */ @@ -109,7 +109,7 @@ public function getMaxDepth() {} interface OuterIterator extends Iterator { - /** @return Iterator */ + /** @return Iterator|null */ public function getInnerIterator(); } @@ -303,7 +303,7 @@ public function current() {} /** @return void */ public function next() {} - /** @return int */ + /** @return int|null */ public function getIteratorIndex() {} /** @return ArrayIterator */ diff --git a/ext/spl/spl_iterators_arginfo.h b/ext/spl/spl_iterators_arginfo.h index 601dfe4d7853c..aa5f25423b91d 100644 --- a/ext/spl/spl_iterators_arginfo.h +++ b/ext/spl/spl_iterators_arginfo.h @@ -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()