Skip to content

Commit

Permalink
[minor] add $options argument to Parameter::typed()
Browse files Browse the repository at this point in the history
  • Loading branch information
kbond committed Oct 18, 2021
1 parent 29d8277 commit 8961f8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Callback/Parameter.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ final public static function union(self ...$parameters): self
/**
* @see TypedParameter::__construct()
*/
final public static function typed(string $type, $value): self
final public static function typed(string $type, $value, int $options = Argument::EXACT|Argument::COVARIANCE|Argument::CONTRAVARIANCE|Argument::VERY_STRICT): self
{
return new TypedParameter($type, $value);
return new TypedParameter($type, $value, $options);
}

/**
Expand Down

0 comments on commit 8961f8d

Please sign in to comment.