Skip to content

Commit

Permalink
feat(Option): apply closure should be able to return mixed (#442)
Browse files Browse the repository at this point in the history
  • Loading branch information
devnix authored Feb 20, 2024
1 parent 898f808 commit b85e5e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Psl/Option/Option.php
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ public function proceed(Closure $some, Closure $none): mixed
/**
* Applies a function to a contained value and returns the original `Option<T>`.
*
* @param (Closure(T): void) $closure
* @param (Closure(T): mixed) $closure
*
* @return Option<T>
*/
Expand Down

0 comments on commit b85e5e1

Please sign in to comment.