Skip to content

Commit 72ac3b3

Browse files
committed
Merge branch '4.1' into 4.2
* 4.1: bump required Twig version fix compatibility with Twig >= 2.6.1 [Form] SA fix fix compatibility with PHPUnit 4.8 remove return type hint for PHP 5 compatibility SCA: minor code tweaks Component CssSelector tests [DebugClassLoader] Readd findFile() method [Console] Fix composer.json suggest/provide Revert "bug #29597 [DI] fix reporting bindings on overriden services as unused (nicolas-grekas)" Fixed exception wording Fix SwiftMailerHandler to support Monolog's latest reset functionality
2 parents f89d2fa + 46fc3c1 commit 72ac3b3

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)