Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/PhpOption/Option.php
Original file line number Diff line number Diff line change
Expand Up @@ -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<S>
Expand Down