diff --git a/core/lib/Drupal/Core/TypedData/Validation/ConstraintViolationBuilder.php b/core/lib/Drupal/Core/TypedData/Validation/ConstraintViolationBuilder.php index eb6d2ec..1389622 100644 --- a/core/lib/Drupal/Core/TypedData/Validation/ConstraintViolationBuilder.php +++ b/core/lib/Drupal/Core/TypedData/Validation/ConstraintViolationBuilder.php @@ -207,8 +207,7 @@ public function addViolation() { } else { try { - $translatedMessage = $this->translator->transChoice($this->message, $this->plural, $this->parameters, $this->translationDomain# - ); + $translatedMessage = $this->translator->transChoice($this->message, $this->plural, $this->parameters, $this->translationDomain); } catch (\InvalidArgumentException $e) { $translatedMessage = $this->translator->trans($this->message, $this->parameters, $this->translationDomain); diff --git a/core/lib/Drupal/Core/TypedData/Validation/ContextualValidatorInterface.php b/core/lib/Drupal/Core/TypedData/Validation/ContextualValidatorInterface.php index c02bc62..36355a5 100644 --- a/core/lib/Drupal/Core/TypedData/Validation/ContextualValidatorInterface.php +++ b/core/lib/Drupal/Core/TypedData/Validation/ContextualValidatorInterface.php @@ -27,7 +27,7 @@ * @param array|null $groups * The validation groups to validate, defaults to "Default". * @param bool $is_root_call - * (optional) Whether its the most upper call in the type data tree. + * (optional) Whether its the most upper call in the typed data tree. * * @return $this */