Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:110452 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 77657 invoked from network); 9 Jun 2020 16:33:28 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 9 Jun 2020 16:33:28 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 24EE3180088 for ; Tue, 9 Jun 2020 08:17:12 -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=0.8 required=5.0 tests=BAYES_20,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_NEUTRAL autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS20694 188.94.24.0/21 X-Spam-Virus: No X-Envelope-From: Received: from scarlet.netpirates.net (scarlet.netpirates.net [188.94.27.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Tue, 9 Jun 2020 08:17:11 -0700 (PDT) Received: from p5de2cc6e.dip0.t-ipconnect.de ([93.226.204.110] helo=[192.168.178.42]) by scarlet.netpirates.net with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1jifzv-0002DV-MG for internals@lists.php.net; Tue, 09 Jun 2020 17:17:07 +0200 To: internals@lists.php.net References: Reply-To: internals@lists.php.net Message-ID: <2e2342b2-125c-d0f8-9a5d-553086ed8455@php.net> Date: Tue, 9 Jun 2020 17:17:06 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [RFC] Shorter attribute syntax From: sebastian@php.net (Sebastian Bergmann) Am 09.06.2020 um 13:55 schrieb Benjamin Eberlei: > Larry's suggestion about #[Attr] makes an important argument about allowing > to declare attributes in code in PHP 7 in a forward compatible way that has > not been brought up before. > > /** @ORM\Entity */ > #[ORM\Entity] > class User {} > > This code would work on PHP 7 and 8. This would be great!