Skip to content

Commit 1acb6e0

Browse files
author
symfonyaml
committed
Apply fabbot.io suggestions about exception formatting
1 parent 452096e commit 1acb6e0

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, true);
5757
}
5858
if (!\is_array($choices)) {
59-
throw new ConstraintDefinitionException(\sprintf('The Choice constraint expects the callback to return an iterable value, got %s.', get_debug_type($choices)));
59+
throw new ConstraintDefinitionException(\sprintf('The Choice constraint expects the callback to return an iterable value, got "%s".', get_debug_type($choices)));
6060
}
6161
} else {
6262
$choices = $constraint->choices;

0 commit comments

Comments
 (0)