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
if (!$translatorinstanceof LegacyTranslatorInterface && !$translatorinstanceof TranslatorInterface) {
60
+
thrownew \TypeError(sprintf('Argument 1 passed to %s() must be an instance of %s, %s given.', __METHOD__, TranslatorInterface::class, \is_object($translator) ? \get_class($translator) : \gettype($translator)));
thrownew \TypeError(sprintf('Argument 1 passed to %s() must be an instance of %s, %s given.', __METHOD__, TranslatorInterface::class, \is_object($translator) ? \get_class($translator) : \gettype($translator)));
39
+
}
39
40
$this->translator = $translator;
40
41
}
41
42
@@ -53,11 +54,17 @@ public function trans($id, array $parameters = array(), $domain = 'messages', $l
53
54
54
55
/**
55
56
* @see TranslatorInterface::transChoice()
57
+
* @deprecated since Symfony 4.2, use the trans() method instead with a %count% parameter
@trigger_error(sprintf('The "%s()" method is deprecated since Symfony 4.2, use the trans() one instead with a "%count%" parameter.', __METHOD__), E_USER_DEPRECATED);
0 commit comments