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
<?php is_subclass_of(mixed $object_or_class, string $class, bool $allow_string = true): bool
<?php                 $ellipsis = $ellipsis->attr['ellipsis'] ?? 0;



                if (is_file($f['file']) && 0 <= 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'];