You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$messageTemplate = $userInvalidMessage ?? 'The value {{ value }} is not valid.';
196
200
197
201
if (null !== $this->translator) {
198
202
$message = $this->translator->trans($messageTemplate, ['{{ value }}' => $clientDataAsString], 'validators');
199
203
} else {
200
204
$message = strtr($messageTemplate, ['{{ value }}' => $clientDataAsString]);
201
205
}
202
206
203
-
$form->addError(newFormError($message, $messageTemplate, ['{{ value }}' => $clientDataAsString], null, newTransformationFailedException(sprintf('The choices "%s" do not exist in the choice list.', implode('", "', array_keys($unknownValues))))));
207
+
$form->addError(newFormError($message, $messageTemplate, ['{{ value }}' => $clientDataAsString], null, newTransformationFailedException(sprintf('The choices "%s" do not exist in the choice list.', $clientDataAsString))));
0 commit comments