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.';
197
201
198
202
if (null !== $this->translator) {
199
203
$message = $this->translator->trans($messageTemplate, ['{{ value }}' => $clientDataAsString], 'validators');
200
204
} else {
201
205
$message = strtr($messageTemplate, ['{{ value }}' => $clientDataAsString]);
202
206
}
203
207
204
-
$form->addError(newFormError($message, $messageTemplate, ['{{ value }}' => $clientDataAsString], null, newTransformationFailedException(sprintf('The choices "%s" do not exist in the choice list.', implode('", "', array_keys($unknownValues))))));
208
+
$form->addError(newFormError($message, $messageTemplate, ['{{ value }}' => $clientDataAsString], null, newTransformationFailedException(sprintf('The choices "%s" do not exist in the choice list.', $clientDataAsString))));
0 commit comments