Post #3883196
2026-07-02 20:13 UTC
@dseguy@phpc.social Here's my approach. Maybe it's considered “cheating” by creating a new method. However, I wanted to do it without changing the external call. This makes the output `CA` instead of `CB`.
If only parent::parent::foo() could work :D
Replies (1)
-
@dseguy@phpc.social 2026-07-08 08:17
@awoodsnet@phpc.social nah, I was quite vague in the constraints, so that count. Actually, you ended in the cul-de-sac that started the whole post: self, parent then what? And if you want some fun read, I even conceptualized a 'grandparent' operator here: https://php-tips.readthedocs.io/en/latest/tips/parent_operator.html greatgrandparent included... :D