On Tue, Apr 14, 2020 at 2:56 PM Iván Arias <txigre...@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. >