Skip to content

Commit 0c94540

Browse files
committed
Remove codition that is always false
1 parent 8555c21 commit 0c94540

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/Symfony/Component/Validator/Constraints/UniqueValidator.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,6 @@ public function validate(mixed $value, Constraint $constraint)
3030
throw new UnexpectedTypeException($constraint, Unique::class);
3131
}
3232

33-
if (!\is_array($constraint->fields) && !\is_string($constraint->fields)) {
34-
throw new UnexpectedTypeException($constraint->fields, 'array');
35-
}
36-
3733
$fields = (array) $constraint->fields;
3834

3935
if (null === $value) {

0 commit comments

Comments
 (0)