From ee8ad0c4e9fd6a39da3e840a75e26589ed6e08d5 Mon Sep 17 00:00:00 2001 From: Christophe Coevoet Date: Tue, 15 Feb 2011 15:10:15 +0100 Subject: [PATCH] Fixed previous commit to handle the case of arrays --- .../DependencyInjection/Configuration/Builder/ExprBuilder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/DependencyInjection/Configuration/Builder/ExprBuilder.php b/src/Symfony/Component/DependencyInjection/Configuration/Builder/ExprBuilder.php index b0c9f0adfd..d5ec37ef35 100644 --- a/src/Symfony/Component/DependencyInjection/Configuration/Builder/ExprBuilder.php +++ b/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; }