is_subclass_of

Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Checks if the object has this class as one of its parents or implements it
is_subclass_of(mixed $object_or_classstring $classbool $allow_string true): bool
                $ellipsis $ellipsis->attr['ellipsis'] ?? 0;



                if (
is_file($f['file']) && <= self::$srcContext) {

                    if (!empty(
$f['class']) && (is_subclass_of($f['class'], 'Twig\Template') || is_subclass_of($f['class'], 'Twig_Template')) && method_exists($f['class'], 'getDebugInfo')) {

                        
$template null;

                        if (isset(
$f['object'])) {

                            
$template $f['object'];