Supported Versions: PHP 5, PHP 7, PHP 8
Return the parent classes of the given class
<?php class_parents(object|string $object_or_class, bool $autoload = true): array|false
<?php             }

        }



        $parents = @class_parents($stripped);



        if ($parents !== false) {

            foreach ($parents as $parent) {
<?php         $results = [];



        foreach (array_reverse(class_parents($class) ?: []) + [$class => $class] as $class) {

            $results += trait_uses_recursive($class);

        }