From 8ac3603a8b9a40420c7a87a720f9fee228b928ce Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Wed, 16 Nov 2011 08:07:47 +0100 Subject: [PATCH] fixed a warning (PHP 5.4) --- lib/Twig/Template.php | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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 -- 1.7.2.5