Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:111459 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 35964 invoked from network); 11 Aug 2020 13:22:35 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 11 Aug 2020 13:22:35 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id F2DB31804DA for ; Tue, 11 Aug 2020 05:21:59 -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.1 required=5.0 tests=BAYES_00,SPF_HELO_PASS, SPF_NEUTRAL autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from xdebug.org (xdebug.org [82.113.146.227]) by php-smtp4.php.net (Postfix) with ESMTP for ; Tue, 11 Aug 2020 05:21:58 -0700 (PDT) Received: from localhost (localhost [IPv6:::1]) by xdebug.org (Postfix) with ESMTPS id F1FA510C24A; Tue, 11 Aug 2020 13:21:57 +0100 (BST) Date: Tue, 11 Aug 2020 13:21:57 +0100 (BST) X-X-Sender: derick@singlemalt.home.derickrethans.nl To: Chris Riley cc: PHP Developers Mailing List In-Reply-To: Message-ID: References: User-Agent: Alpine 2.23 (DEB 453 2020-06-18) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Subject: Re: [PHP-DEV] [VOTE] Shorter Attribute Syntax Change From: derick@php.net (Derick Rethans) On Tue, 11 Aug 2020, Chris Riley wrote: > Quick question. > > What is the expected behaviour of: > > @[Bar()]; > class Foo {} That will error out in PHP 8, with: Parse error: syntax error, unexpected token ";" in Standard input code on line 2 cheers, Derick -- PHP 7.4 Release Manager Host of PHP Internals News: https://phpinternals.news Like Xdebug? Consider supporting me: https://xdebug.org/support https://derickrethans.nl | https://xdebug.org | https://dram.io twitter: @derickr and @xdebug