Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:111934 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 47727 invoked from network); 25 Sep 2020 16:12:14 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 25 Sep 2020 16:12:14 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 21EB818054A for ; Fri, 25 Sep 2020 08:22:55 -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.4 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_SOFTFAIL autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from mail-lf1-f42.google.com (mail-lf1-f42.google.com [209.85.167.42]) (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 ; Fri, 25 Sep 2020 08:22:54 -0700 (PDT) Received: by mail-lf1-f42.google.com with SMTP id y17so3209678lfa.8 for ; Fri, 25 Sep 2020 08:22:54 -0700 (PDT) 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=kG+1a7GlwRdMoJcTcibNtzgCCKKK/HcR9Lfbw+tAJ8w=; b=mt9S7hJmmtq9aNa+SRO1FeH+lvLX8w5O8ZHAyffENDYw8iAm/HKsLXB72BSKB3Eb/y LnmWHHTYCkzpJDeP0LrXWr0lqkrUs/jXDOG7/98n+ZS08SmGBmvgbYeL6MaFiSx5v1Fk e7fl/fonvRjaX9oxyaaq8bZwwbTIGsVut+pB/Pz6ZOMvfdje5XVw+Wt6ABkxi6dR9OKC wOz5esikhvXU8jqlkvtGKdigKh87IVlUOaRU2VxjVM/U7K9tJN2kiu+j5Yqn8Bc5RcsH 7TjaaLKfqnu/lx34d+ZtyIoJp8K3LxmaOD2ZkVJ2L+X3oMFWlOpQKxTnb5xGHwV53V+Z dGhg== X-Gm-Message-State: AOAM531sg4Yr9dxD3yt1ZcGUSrI2dQ9lCy31iDUX2OAy/PsaVBfV+ozt FMLv0TmcY/6bwJXF1t67KVkC21DGdEoDjn2kgJKbqQ== X-Google-Smtp-Source: ABdhPJyAhTULJ5A2oPLJC/dNPclL0WtHVHUwZLEmZhAJAeYkQdO4efWdneMRBBo1bK5QvuEkcgLzlvVOhbM4zKPOfg0= X-Received: by 2002:a19:cca:: with SMTP id 193mr1476409lfm.208.1601047371630; Fri, 25 Sep 2020 08:22:51 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Fri, 25 Sep 2020 10:22:40 -0500 Message-ID: To: Nikita Popov Cc: PHP internals Content-Type: multipart/alternative; boundary="000000000000dadeed05b024e31b" Subject: Re: [PHP-DEV] Attributes on property groups From: pollita@php.net (Sara Golemon) --000000000000dadeed05b024e31b Content-Type: text/plain; charset="UTF-8" On Tue, Sep 22, 2020 at 7:51 AM Nikita Popov wrote: > Currently, placing an attribute on property (or constant) groups is not > allowed: > > This is a case that was not explicitly mentioned in the RFC and we decided > to be conversative when landing the initial implementation. > > Conservative is a good default, but as Tyson pointed out, nobody is confused about visibility modifiers applying to the entire group, I don't believe they'd be confused about attribute application. ((Though I am curious what phpdoc syntax says here.)) > However, this restriction seems pretty arbitrary to me, and I think we > should remove it. While there is some potential ambiguity as to whether the > attribute applies to all properties or only the first one, I think the > general expectation is that it should apply to all properties, just like > the property type does. > Agreed. The limitation seems arbitrary and unnecessary. Call this a refinement of the feature previously landed, and let's get it into 8.0. -Sara --000000000000dadeed05b024e31b--