Skip to content

Commit

Permalink
Fix optional before required parameter deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
kelunik committed Mar 21, 2024
1 parent 7e3560b commit ded3d9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Coroutine.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit ded3d9b

Please sign in to comment.