Re: [VOTE] Shorter Attribute Syntax Change
| From: | Derick Rethans | Date: | Tue, 11 Aug 2020 12:21:57 +0000 |
| Subject: | Re: [VOTE] Shorter Attribute Syntax Change | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-111459@lists.php.net to get a copy of this message | ||
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