We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2313fb5 commit ed9debdCopy full SHA for ed9debd
ValidatorBuilder.php
@@ -258,7 +258,11 @@ public function setConstraintValidatorFactory(ConstraintValidatorFactoryInterfac
258
*/
259
public function setTranslator(LegacyTranslatorInterface $translator)
260
{
261
- $this->translator = $translator instanceof LegacyTranslatorProxy ? $translator->getTranslator() : $translator;
+ $this->translator = $translator;
262
+
263
+ while ($this->translator instanceof LegacyTranslatorProxy) {
264
+ $this->translator = $this->translator->getTranslator();
265
+ }
266
267
return $this;
268
}
0 commit comments