Re: Re: [RFC] Attributes v2

From: Date: Tue, 14 Apr 2020 13:53:51 +0000
Subject: Re: Re: [RFC] Attributes v2
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-109628@lists.php.net to get a copy of this message
On Tue, Apr 14, 2020 at 2:56 PM Iván Arias <txigreman@hotmail.com> wrote: > > > Hi everyone, > > > > I have updated the RFC with much of the feedback received here, on > Twitter > and Reddit. > > > > https://wiki.php.net/rfc/attributes_v2 > > > Hi Benjamin, > > Thanks a lot for you effort, same for Martin. I really hope to see this in > PHP8. > > I have a simple question. From the RFC: > > > Attributes are added before the declaration they belong to, similar to > do-block comments. They can be declared before or after a doc-block > comment that documents a declaration. > > Could annotations be declared before AND after the doc-block? > What would be the behavior in that case? > Attributes are handled as a list, so you always append to them. So it is sort of like merging the list of attributes before and after the doc comment. See here: https://gist.github.com/beberlei/6cf033a3d2cd1a8d991fcabdecce0626 Regards, > Iván Arias. >

« previous php.internals (#109628) next »