Skip to content

Commit

Permalink
fixed a warning (PHP 5.4)
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Nov 16, 2011
1 parent 6849705 commit 8ac3603
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Twig/Template.php
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ protected function getAttribute($object, $item, array $arguments = array(), $typ
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
Expand Down

0 comments on commit 8ac3603

Please sign in to comment.