Fix IsOneOfAssert constructor parameter type declaration.

This commit is contained in:
Wilmer Arambula
2024-03-21 08:18:12 -03:00
parent e82127e91d
commit 5a434ee933

View File

@ -19,7 +19,7 @@ class IsOneOfAssert extends \PHPUnit\Framework\Constraint\Constraint
*/
private $allowedValues = [];
public function __construct($allowedValues)
public function __construct(array $allowedValues)
{
$this->allowedValues = $allowedValues;
}
@ -42,6 +42,6 @@ class IsOneOfAssert extends \PHPUnit\Framework\Constraint\Constraint
protected function matches($other): bool
{
return in_array($other, $this->allowedValues);
return in_array($other, $this->allowedValues, false);
}
}