From 994b7d5ca4b9f9ac915658dae607f8652205ee05 Mon Sep 17 00:00:00 2001 From: Ruud Kamphuis Date: Mon, 4 Nov 2019 20:48:41 +0100 Subject: [PATCH] Remove psalm-assert for `oneOf` (#144) This could cause a `RedundantCondition` error in psalm, as asserting the type is not the main goal of this assertion. --- src/Assert.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/Assert.php b/src/Assert.php index 0e4bb0e7..b94699e2 100644 --- a/src/Assert.php +++ b/src/Assert.php @@ -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 $values - * @psalm-assert ExpectedType $value - * * @param mixed $value * @param array $values * @param string $message