Kaynağa Gözat

Fixed previous commit to handle the case of arrays

Christophe Coevoet 14 yıl önce
ebeveyn
işleme
ee8ad0c4e9

+ 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;
     }