Re: [RFC] [Discussion] Deprecate functions with overloaded signatures
| From: | Tim Düsterhus | Date: | Tue, 02 May 2023 12:04:45 +0000 |
| Subject: | Re: [RFC] [Discussion] Deprecate functions with overloaded signatures | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-120179@lists.php.net to get a copy of this message | ||
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.
parent::class appears to do the right thing. Best regards Tim Düsterhuswhile 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.