[php-src] PR #15878: Bind trait props/consts before parent class
| From: | iluuu1994 | Date: | Fri, 13 Sep 2024 16:02:40 +0000 |
| Subject: | [php-src] PR #15878: Bind trait props/consts before parent class | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-28583@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/15878
Author: iluuu1994
This more accurately matches the "copy & paste" semantics described in the
documentation. The same could be done for methods. However, abstract trait methods diverge from this
behavior, given that a parent method can satisfy trait methods used in the child. In that case, the
method is not copied, but the check must be performed after the parent has been bound. For now, just
bother with properties and constants.
Fixes GH-15753
I'm unsure if this should be backported. It might be safer to just commit for master.