From b85e5e1c8e2385bf108bb3a09fb36b459dbc1a07 Mon Sep 17 00:00:00 2001 From: Pablo Largo Mohedano Date: Tue, 20 Feb 2024 14:49:19 +0100 Subject: [PATCH] feat(Option): `apply` closure should be able to return `mixed` (#442) --- src/Psl/Option/Option.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Psl/Option/Option.php b/src/Psl/Option/Option.php index 8535139c..93cc3cdc 100644 --- a/src/Psl/Option/Option.php +++ b/src/Psl/Option/Option.php @@ -230,7 +230,7 @@ public function proceed(Closure $some, Closure $none): mixed /** * Applies a function to a contained value and returns the original `Option`. * - * @param (Closure(T): void) $closure + * @param (Closure(T): mixed) $closure * * @return Option */