projects
/
web/konrad/twig.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
6849705
)
fixed a warning (PHP 5.4)
author
Fabien Potencier
<fabien.potencier@gmail.com>
Wed, 16 Nov 2011 07:07:47 +0000 (08:07 +0100)
committer
Fabien Potencier
<fabien.potencier@gmail.com>
Wed, 16 Nov 2011 07:07:47 +0000 (08:07 +0100)
lib/Twig/Template.php
patch
|
blob
|
history
diff --git
a/lib/Twig/Template.php
b/lib/Twig/Template.php
index
73e1453
..
27d28bb
100644
(file)
--- 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