[php-src] Issue #12631: Method to check if method overwritten in child class
| From: | foremtehan | Date: | Wed, 08 Nov 2023 16:16:05 +0000 |
| Subject: | [php-src] Issue #12631: Method to check if method overwritten in child class | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-245763@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/12631
Author: foremtehan
### Description
It would be great if we could have a method that checks whether the child class overwritten the
parent class's method
https://3v4l.org/hTQWO
As you can see in the above script, The
method_exists return true even the method not
overwritten in the child class, Not that passing static::class,
self::class and $this don't solve the problem