PHP/ReflectionClass/getParentClass

from HTYP, the free directory anyone can edit if they can prove to me that they're not a spambot
< PHP
Revision as of 16:03, 14 April 2023 by Woozle (talk | contribs) (Created page with "{{fmt/title|ReflectionClass::getParentClass()}} As of 2023-04-14 [https://www.php.net/manual/en/reflectionclass.getparentclass.php the official documentation] says {{fmt/quote...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
ReflectionClass::getParentClass()

As of 2023-04-14 the official documentation says «This function is currently not documented; only its argument list is available.», so we have to kind of reverse-engineer how it actually behaves.

Trait Objects

Tentatively, a trait used by another trait is not counted as a "parent class"; you have to look at $oTrait->getTraits().