Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:109628 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 8588 invoked from network); 14 Apr 2020 15:24:25 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 14 Apr 2020 15:24:25 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 0836F1804C3 for ; Tue, 14 Apr 2020 06:54:05 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-wr1-f47.google.com (mail-wr1-f47.google.com [209.85.221.47]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Tue, 14 Apr 2020 06:54:03 -0700 (PDT) Received: by mail-wr1-f47.google.com with SMTP id d27so5213936wra.1 for ; Tue, 14 Apr 2020 06:54:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=beberlei-de.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=FAJH87CkCy3+d9rod+ii4/y9vaVe5xhMC22SFUDEF/E=; b=yIyKmh4Gchdb26R5OzMDAOXs2VOR4iPVFQ9qUWUNrHlGqNLVUqoegRcLjmvkkITP5b EWLGMlV5AxLqMLEFrVPtLqH6NR9t1NMbFXAvXoN//B3R7bvNDDdGgqSblt9qFCnkWD9k /qPiI30aqSk0Q1mXQbt+62nNzHbOwjZ63gElCHUJINGCgtEKmRbabW8fBZaBQrk3+fjB VLtq++Lq1fNHWd2kj+oC9iWdEs1LxQpzVamRnCaYzMOZ5b7DSNvzTw4Fwgl9Z1R7pMM6 JAu8qlOwhI/XSz41CzsLzWG26af7vcgEJvKYA1nVede31lGBS9vTP9n6GKNlZ/uQHMR1 s+cQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=FAJH87CkCy3+d9rod+ii4/y9vaVe5xhMC22SFUDEF/E=; b=qjrUz/rfQIaY7X/ZzDxQAPOBGjhy9+n2mxTxNBAkxyG/xqVTtmWacBFFuE0997Bdfd slliOTfUWzkh1KsrMo7NMC+O9PGrLt9XrPD5j/3C3IL4ibMVmNKIniVjrWJHv81G+RRb y14PikHle0BF47t865qt2f7mQ/i3Altq1vkbCjiTCL/rO5VLX6BAmT7yQc3VSkJ7h/u/ lt46tjt4/QN7/ssMsRUx9XnQAaMKsSazmW28m4nYhS4pLJAHPiS7pK5kETH8SsB7BH2u BP9Ke9+t36dDBIKbunZYzJ5Kuwd4pwnLytjZtghV92tWR/von2SFVl5EN5NSp9STo5vA BISQ== X-Gm-Message-State: AGi0PuZHM+flo6xWsBrysaTzihKNHOXCAy07zF5cE+kNnM++y/PKQhwi 1TTmDH/G2K7bTWXHvUeZdIYerOsuIiXx1gmZruEaDA== X-Google-Smtp-Source: APiQypLFHPT6d1hRYK2e9eGQ8z9gU1JXDX/enAKgdAsogbBwlBadFFL6w4ut6SmPjd2dtLe6SkdjDGgx1AQVBen1rsw= X-Received: by 2002:a5d:4c87:: with SMTP id z7mr25827905wrs.39.1586872442860; Tue, 14 Apr 2020 06:54:02 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Tue, 14 Apr 2020 15:53:51 +0200 Message-ID: To: =?UTF-8?Q?Iv=C3=A1n_Arias?= Cc: PHP Internals , =?UTF-8?Q?Martin_Schr=C3=B6der?= Content-Type: multipart/alternative; boundary="00000000000042d34c05a340881b" Subject: Re: [PHP-DEV] Re: [RFC] Attributes v2 From: kontakt@beberlei.de (Benjamin Eberlei) --00000000000042d34c05a340881b Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Apr 14, 2020 at 2:56 PM Iv=C3=A1n Arias wro= te: > > > 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 i= n > 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=C3=A1n Arias. > --00000000000042d34c05a340881b--