Преглед на файлове

Fixed previous commit to handle the case of arrays

Christophe Coevoet преди 14 години
родител
ревизия
ee8ad0c4e9
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/Symfony/Component/DependencyInjection/Configuration/Builder/ExprBuilder.php

+ 1 - 1
src/Symfony/Component/DependencyInjection/Configuration/Builder/ExprBuilder.php

@@ -165,7 +165,7 @@ class ExprBuilder
      */
     public function thenInvalid($message)
     {
-        $this->thenPart = function ($v) use ($message) {throw new \InvalidArgumentException(sprintf($message, $v)); };
+        $this->thenPart = function ($v) use ($message) {throw new \InvalidArgumentException(sprintf($message, json_encode($v))); };
 
         return $this;
     }