Re: 5.4a2 trait attribute name conflict resolution

From: Date: Fri, 22 Jul 2011 17:09:20 +0000
Subject: Re: 5.4a2 trait attribute name conflict resolution
References: 1 2 3 4 5 6 7  Groups: php.internals 
Request: Send a blank email to internals+get-54146@lists.php.net to get a copy of this message
On Jul 22, 2011, at 9:32 AM, Alex Howansky wrote: > >> Just curious, if the trait property is set to private what happens? > > Ooh, good question. > > PHP Fatal error: baz and foo define the same property ($zoo) in the composition of baz. > However, the definition differs and is considered incompatible. And while people have traits on the mind, please also review the three open bug reports which also discuss how trait behavior should be defined: https://bugs.php.net/search.php?search_for=trait&cmd=display Regards, Philip

« previous php.internals (#54146) next »