From 61e3dbbf28227fdaa55c4d81da5ab4e7bc2328cc Mon Sep 17 00:00:00 2001 From: Choraimy Kroonstuiver <3661474+axlon@users.noreply.github.com> Date: Sun, 11 Aug 2024 20:51:05 +0200 Subject: [PATCH] Improve `Option::select()` return type --- src/PhpOption/Option.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/PhpOption/Option.php b/src/PhpOption/Option.php index 91fab9c..57fcc03 100644 --- a/src/PhpOption/Option.php +++ b/src/PhpOption/Option.php @@ -369,9 +369,10 @@ abstract public function filterNot($callable); * * In other words, this will filter all but the passed value. * - * @param T $value + * @template S of T + * @param S $value * - * @return Option + * @return Option */ abstract public function select($value);