Skip to content

Commit

Permalink
[Validator] do not call getter inside ExecutionContext to prevent unn…
Browse files Browse the repository at this point in the history
…ecessary calls
  • Loading branch information
Tobion committed Jul 24, 2014
1 parent 2f7b702 commit d6d462a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Symfony/Component/Validator/Context/ExecutionContext.php
Expand Up @@ -184,8 +184,8 @@ public function addViolation($message, array $parameters = array(), $invalidValu
$message,
$parameters,
$this->root,
$this->getPropertyPath(),
$this->getValue(),
$this->propertyPath,
$this->value,
null,
null
));
Expand All @@ -201,8 +201,8 @@ public function buildViolation($message, array $parameters = array())
$message,
$parameters,
$this->root,
$this->getPropertyPath(),
$this->getValue(),
$this->propertyPath,
$this->value,
$this->translator,
$this->translationDomain
);
Expand Down

0 comments on commit d6d462a

Please sign in to comment.