Explorar o código

[Validator] fixed typo

Fabien Potencier %!s(int64=14) %!d(string=hai) anos
pai
achega
1a055fc7f0
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/Symfony/Component/Validator/ConstraintViolation.php

+ 1 - 1
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()