Skip to content

Commit 13d551f

Browse files
committed
Fixed exception wording
1 parent cd3fba1 commit 13d551f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ContainerConstraintValidatorFactory.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class ContainerConstraintValidatorFactory implements ConstraintValidatorFactoryI
2828
public function __construct(ContainerInterface $container)
2929
{
3030
$this->container = $container;
31-
$this->validators = array();
31+
$this->validators = [];
3232
}
3333

3434
/**
@@ -46,7 +46,7 @@ public function getInstance(Constraint $constraint)
4646
$this->validators[$name] = $this->container->get($name);
4747
} else {
4848
if (!class_exists($name)) {
49-
throw new ValidatorException(sprintf('Constraint validator "%s" does not exist or it is not enabled. Check the "validatedBy" method in your constraint class "%s".', $name, \get_class($constraint)));
49+
throw new ValidatorException(sprintf('Constraint validator "%s" does not exist or is not enabled. Check the "validatedBy" method in your constraint class "%s".', $name, \get_class($constraint)));
5050
}
5151

5252
$this->validators[$name] = new $name();

0 commit comments

Comments
 (0)