minor #11463 [Validator] prevent unnecessary calls inside ExecutionContext (Tobion)
This PR was merged into the 2.5 branch.
Discussion
----------
[Validator] prevent unnecessary calls inside ExecutionContext
| Q | A
| ------------- | ---
| Bug fix? | no
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets |
| License | MIT
Small performance improvement by preventing calls to `PropertyPath::append($this->propertyPath, $subPath)` when not needed.
Commits
-------
d6d462a
[Validator] do not call getter inside ExecutionContext to prevent unnecessary calls
This commit is contained in:
commit
cd29962dc0
@ -183,8 +183,8 @@ class ExecutionContext implements ExecutionContextInterface
|
|||||||
$message,
|
$message,
|
||||||
$parameters,
|
$parameters,
|
||||||
$this->root,
|
$this->root,
|
||||||
$this->getPropertyPath(),
|
$this->propertyPath,
|
||||||
$this->getValue(),
|
$this->value,
|
||||||
null,
|
null,
|
||||||
null
|
null
|
||||||
));
|
));
|
||||||
@ -200,8 +200,8 @@ class ExecutionContext implements ExecutionContextInterface
|
|||||||
$message,
|
$message,
|
||||||
$parameters,
|
$parameters,
|
||||||
$this->root,
|
$this->root,
|
||||||
$this->getPropertyPath(),
|
$this->propertyPath,
|
||||||
$this->getValue(),
|
$this->value,
|
||||||
$this->translator,
|
$this->translator,
|
||||||
$this->translationDomain
|
$this->translationDomain
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user