eee
This commit is contained in:
@@ -26,6 +26,9 @@ class NotIn implements ValidatorInterface
|
|||||||
*/
|
*/
|
||||||
public function dispatch(mixed $data, object $class): bool
|
public function dispatch(mixed $data, object $class): bool
|
||||||
{
|
{
|
||||||
|
if ($data === null) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
return !in_array($data, $this->value);
|
return !in_array($data, $this->value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user