From 4ec735e6962fdadbd81d09a668923784413efb0e Mon Sep 17 00:00:00 2001 From: Claudio Zizza <859964+SenseException@users.noreply.github.com> Date: Thu, 13 Apr 2023 00:14:26 +0200 Subject: [PATCH] fix: add missing constructor parameter to IteratorIterator The second parameter exist since PHP 5.1 and wasn't present in the docs before. Even reflection wasn't showing this parameter until 8.0. --- stubs/CoreGenericIterators.phpstub | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stubs/CoreGenericIterators.phpstub b/stubs/CoreGenericIterators.phpstub index c69583d9d..43a7bb1f8 100644 --- a/stubs/CoreGenericIterators.phpstub +++ b/stubs/CoreGenericIterators.phpstub @@ -114,7 +114,7 @@ class IteratorIterator implements OuterIterator { /** * @param TIterator $iterator */ - public function __construct(Traversable $iterator) {} + public function __construct(Traversable $iterator, ?string $class = null) {} /** * @return TValue|null current value or null when iterator is drained