mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-15 11:56:50 +00:00
Avoid unnecessary is_object call
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user