<?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); }