diff --git a/src/PhpOption/Option.php b/src/PhpOption/Option.php index 91fab9c..1e7817e 100644 --- a/src/PhpOption/Option.php +++ b/src/PhpOption/Option.php @@ -36,9 +36,10 @@ abstract class Option implements IteratorAggregate * case, and everything else as Some. * * @template S + * @template P * - * @param S $value The actual return value. - * @param S $noneValue The value which should be considered "None"; null by + * @param S|P $value The actual return value. + * @param P $noneValue The value which should be considered "None"; null by * default. * * @return Option