Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6573cd3

Browse filesBrowse files
committed
minor #29849 [Validator] Fixed exception wording (vudaltsov)
This PR was merged into the 3.4 branch. Discussion ---------- [Validator] Fixed exception wording | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | n/a | License | MIT | Doc PR | n/a Commits ------- 8266262 Fixed exception wording
2 parents 37c6ae8 + 8266262 commit 6573cd3
Copy full SHA for 6573cd3

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed

‎src/Symfony/Component/Validator/ContainerConstraintValidatorFactory.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Validator/ContainerConstraintValidatorFactory.php
+2-2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.