Avoid unnecessary is_object call

This commit is contained in:
Jordi Boggiano
2013-05-06 14:31:38 +02:00
parent c1c0dccfe3
commit 97bf5e5c44
+1 -1
View File
@@ -847,7 +847,7 @@ function twig_in_filter($value, $compare)
*/
function twig_escape_filter(Twig_Environment $env, $string, $strategy = 'html', $charset = null, $autoescape = false)
{
if ($autoescape && is_object($string) && $string instanceof Twig_Markup) {
if ($autoescape && $string instanceof Twig_Markup) {
return $string;
}