From d6d462a8a75e33b2933181cb924a0f2b53878920 Mon Sep 17 00:00:00 2001 From: Tobias Schultze Date: Thu, 24 Jul 2014 16:44:45 +0200 Subject: [PATCH] [Validator] do not call getter inside ExecutionContext to prevent unnecessary calls --- .../Component/Validator/Context/ExecutionContext.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Symfony/Component/Validator/Context/ExecutionContext.php b/src/Symfony/Component/Validator/Context/ExecutionContext.php index 542ea33658..b8cd99927c 100644 --- a/src/Symfony/Component/Validator/Context/ExecutionContext.php +++ b/src/Symfony/Component/Validator/Context/ExecutionContext.php @@ -184,8 +184,8 @@ class ExecutionContext implements ExecutionContextInterface $message, $parameters, $this->root, - $this->getPropertyPath(), - $this->getValue(), + $this->propertyPath, + $this->value, null, null )); @@ -201,8 +201,8 @@ class ExecutionContext implements ExecutionContextInterface $message, $parameters, $this->root, - $this->getPropertyPath(), - $this->getValue(), + $this->propertyPath, + $this->value, $this->translator, $this->translationDomain );