diff --git a/core/lib/Drupal/Core/Plugin/Validation/Constraint/LengthConstraint.php b/core/lib/Drupal/Core/Plugin/Validation/Constraint/LengthConstraint.php index 5b23c98..5d02f22 100644 --- a/core/lib/Drupal/Core/Plugin/Validation/Constraint/LengthConstraint.php +++ b/core/lib/Drupal/Core/Plugin/Validation/Constraint/LengthConstraint.php @@ -2,7 +2,7 @@ /** * @file - * Contains \Drupal\Core\Plugin\Validation\Constraint\RangeConstraint. + * Contains \Drupal\Core\Plugin\Validation\Constraint\LengthConstraint. */ namespace Drupal\Core\Plugin\Validation\Constraint; diff --git a/core/lib/Drupal/Core/Validation/DrupalTranslator.php b/core/lib/Drupal/Core/Validation/DrupalTranslator.php index 266d935..8700526 100644 --- a/core/lib/Drupal/Core/Validation/DrupalTranslator.php +++ b/core/lib/Drupal/Core/Validation/DrupalTranslator.php @@ -39,7 +39,7 @@ public function transChoice($id, $number, array $parameters = array(), $domain = $ids = explode('|', $id); if (!isset($ids[1])) { - throw new InvalidArgumentException(sprintf('The message "%s" cannot be pluralized, because it is missing a plural (e.g. "There is one apple|There are @count apples").', $id)); + throw new \InvalidArgumentException(sprintf('The message "%s" cannot be pluralized, because it is missing a plural (e.g. "There is one apple|There are @count apples").', $id)); } return format_plural($number, $ids[0], $ids[1], $this->processParameters($parameters), $this->getOptions($domain, $locale)); }