Function
is_subclass_of
Synopsis
is_subclass_of(mixed, string, bool ...): bool
- Area
Runtime\PS\Core\Reflect\is_subclass_ofareas
Description
is_subclass_of always returns false; phpscript has no inheritance and no object is an instance of a subclass. A guard written as is_subclass_of($o, "Exception") || get_class($o) === "Exception" falls through to the name comparison, which is the check that answers here.
Usage
$value = is_subclass_of($arguments);
$fn = is_subclass_of(...);