Re: 5.4a2 trait attribute name conflict resolution

From: Date: Fri, 22 Jul 2011 16:12:20 +0000
Subject: Re: 5.4a2 trait attribute name conflict resolution
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-54133@lists.php.net to get a copy of this message
That makes sense if it would overwrite the methods as well, but otherwise it seems like it provides inconsistent functionality.
Exactly. At the least, it's inconsistent. If it's a bug, then it seems the question becomes: Is the bug this: "Properties defined in a trait should be overridden by same-named properties defined in a class that use the trait." Or (as pointed out by Anthony) this: "You shouldn't be able to define properties in a trait." -- Alex Howansky

Attachment: [application/pkcs7-signature] S/MIME Cryptographic Signature smime.p7s
« previous php.internals (#54133) next »