From ded3d9be08f526089eb7ee8d9f16a9768f9dec2d Mon Sep 17 00:00:00 2001 From: Niklas Keller Date: Thu, 21 Mar 2024 19:52:26 +0100 Subject: [PATCH] Fix optional before required parameter deprecation --- lib/Coroutine.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Coroutine.php b/lib/Coroutine.php index d4195bfe..a283a3df 100644 --- a/lib/Coroutine.php +++ b/lib/Coroutine.php @@ -88,7 +88,7 @@ public function __construct(\Generator $generator) * @psalm-suppress MissingClosureParamType * @psalm-suppress MissingClosureReturnType */ - $onResolve = function (?\Throwable $e = null, $v) use ($generator, &$onResolve) { + $onResolve = function (?\Throwable $e, $v) use ($generator, &$onResolve) { /** @var bool $immediate Used to control iterative coroutine continuation. */ static $immediate = true;