is_subclass_of
symfony/var-dumper
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_class
,
string $class
,
bool $allow_string
=
true
):
bool
$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'
];
Caster/ExceptionCaster.php