Skip to content

Commit

Permalink
Remove psalm-assert for oneOf (webmozarts#144)
Browse files Browse the repository at this point in the history
This could cause a `RedundantCondition` error in psalm, as
asserting the type is not the main goal of this assertion.
  • Loading branch information
ruudk authored and BackEndTea committed Nov 4, 2019
1 parent 4c2f50b commit 994b7d5
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/Assert.php
Original file line number Diff line number Diff line change
Expand Up @@ -964,10 +964,6 @@ public static function range($value, $min, $max, $message = '')
/**
* Does strict comparison, so Assert::oneOf(3, ['3']) does not pass the assertion.
*
* @psalm-template ExpectedType
* @psalm-param array<ExpectedType> $values
* @psalm-assert ExpectedType $value
*
* @param mixed $value
* @param array $values
* @param string $message
Expand Down

0 comments on commit 994b7d5

Please sign in to comment.