소스 검색

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