-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
PHP Docs: https://www.php.net/manual/en/language.oop5.traits.php
- if there is a class member (property/member), then its declaration wins over the declaration from the trait (important for the
bccommand) - multi-trait conflict resolution via
insteadofkeyword (an edge case, but good to have; not sure howReflectionClasswould get me that):
use A, B {
B::smallTalk insteadof A;
}- trait method/property/constant renames on the fly using
askeyword (can retrieve viaReflectionClass::getTraitAliases):
use A, B {
B::bigTalk as talk;
}- trait method/property/constant visibility change on the fly using
askeyword (not sure howReflectionClasswould get me that):
use HelloWorld { sayHello as private myPrivateHello; }Metadata
Metadata
Assignees
Labels
No labels