From 1a055fc7f06c05f417e3b83806ace5a00638f432 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Thu, 30 Sep 2010 07:21:54 +0200 Subject: [PATCH] [Validator] fixed typo --- src/Symfony/Component/Validator/ConstraintViolation.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/Validator/ConstraintViolation.php b/src/Symfony/Component/Validator/ConstraintViolation.php index e66e614a98..181744ebe1 100644 --- a/src/Symfony/Component/Validator/ConstraintViolation.php +++ b/src/Symfony/Component/Validator/ConstraintViolation.php @@ -31,7 +31,7 @@ class ConstraintViolation public function getMessage() { - return str_replace(array_keys($sources), array_values($targets), $this->messageTemplate); + return str_replace(array_keys($this->messageParameters), array_values($this->messageParameters), $this->messageTemplate); } public function getRoot()