Hi
On 5/2/23 13:56, Dan Ackroyd wrote:
And unless I'm missing something, the second option doesn't appear
usable with static methods, which is also a problem with
get_parent_class()
static::class or self::class appear to do the right thing depending on
what exactly you want to retrieve.
while code which invokes
get_parent_class() without parameters should be modified to use
get_parent_class($this) instead.
What would the equivalent code get_parent_class() for static methods? e.g.
parent::class appears to do the right thing.
Best regards
Tim Düsterhus
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: https://www.php.net/unsub.php