From b1b81711b68926c52473b5e5bbc47bf83daa1f23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tinjo=20Sch=C3=B6ni?= <32767367+tscni@users.noreply.github.com> Date: Mon, 13 Jan 2025 21:10:50 +0100 Subject: [PATCH] Fix missing null in generator return types --- standard/_types.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/standard/_types.php b/standard/_types.php index 226f633c2..0a85bbeb2 100644 --- a/standard/_types.php +++ b/standard/_types.php @@ -176,13 +176,13 @@ public function valid(): bool {} /** * Returns whatever was passed to yield or null if nothing was passed or the generator is already closed. - * @return TYield + * @return TYield|null */ public function current(): mixed {} /** * Returns the yielded key or, if none was specified, an auto-incrementing key or null if the generator is already closed. - * @return TKey + * @return TKey|null */ #[LanguageLevelTypeAware(['8.0' => 'mixed'], default: 'string|float|int|bool|null')] public function key() {}