From: Fabien Potencier Date: Wed, 16 Nov 2011 07:07:47 +0000 (+0100) Subject: fixed a warning (PHP 5.4) X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=8ac3603a8b9a40420c7a87a720f9fee228b928ce;p=web%2Fkonrad%2Ftwig.git fixed a warning (PHP 5.4) --- diff --git a/lib/Twig/Template.php b/lib/Twig/Template.php index 73e1453..27d28bb 100644 --- a/lib/Twig/Template.php +++ b/lib/Twig/Template.php @@ -349,7 +349,7 @@ abstract class Twig_Template implements Twig_TemplateInterface return null; } - throw new Twig_Error_Runtime(sprintf('Item "%s" for "%s" does not exist', $item, $object)); + throw new Twig_Error_Runtime(sprintf('Item "%s" for "%s" does not exist', $item, is_array($object) ? 'Array' : $object)); } // get some information about the object