diff --git a/docs/component/option.md b/docs/component/option.md index efc8523d..a1083dd1 100644 --- a/docs/component/option.md +++ b/docs/component/option.md @@ -13,7 +13,7 @@ #### `Functions` - [from_nullable](./../../src/Psl/Option/from_nullable.php#L16) -- [none](./../../src/Psl/Option/none.php#L14) +- [none](./../../src/Psl/Option/none.php#L12) - [some](./../../src/Psl/Option/some.php#L16) #### `Classes` diff --git a/src/Psl/Option/Option.php b/src/Psl/Option/Option.php index 4af0a537..f39385de 100644 --- a/src/Psl/Option/Option.php +++ b/src/Psl/Option/Option.php @@ -38,12 +38,11 @@ public static function some(mixed $value): Option /** * Create an option with none value. * - * @template Tn - * - * @return Option + * @return Option */ public static function none(): Option { + /** @var Option */ return new self(null); } diff --git a/src/Psl/Option/none.php b/src/Psl/Option/none.php index 53f4ed84..fa0f9e5e 100644 --- a/src/Psl/Option/none.php +++ b/src/Psl/Option/none.php @@ -7,9 +7,7 @@ /** * Create an option with none value. * - * @template T - * - * @return Option + * @return Option */ function none(): Option {