8000 Fix fabbot.io suggestions · symfonyaml/symfony@a593904 · GitHub
[go: up one dir, main page]

Skip to content

Commit a593904

Browse files
author
symfonyaml
committed
Fix fabbot.io suggestions
1 parent 599a2f5 commit a593904

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public function validate($value, Constraint $constraint)
5656
$choices = iterator_to_array($choices);
5757
}
5858
if (!\is_array($choices)) {
59-
throw new ConstraintDefinitionException(\sprintf('The Choice constraint expects the callback %s to return an iterable value, got "%s".', $this->formatValue($constraint->callback), get_debug_type($choices)));
59+
throw new ConstraintDefinitionException(\sprintf('The Choice constraint expects the callback "%s" to return an iterable value, got "%s".', trim($this->formatValue($constraint->callback), '"'), get_debug_type($choices)));
6060
}
6161
} else {
6262
$choices = $constraint->choices;

0 commit comments

Comments
 (0)
0