Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 0c94540

Browse filesBrowse files
committed
Remove codition that is always false
1 parent 8555c21 commit 0c94540
Copy full SHA for 0c94540

File tree

1 file changed

+0
-4
lines changed
Filter options

1 file changed

+0
-4
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/Validator/Constraints/UniqueValidator.php
-4Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.