Re: [VOTE] Shorter Attribute Syntax Change
| From: | Chris Riley | Date: | Tue, 11 Aug 2020 12:26:42 +0000 |
| Subject: | Re: [VOTE] Shorter Attribute Syntax Change | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-111460@lists.php.net to get a copy of this message | ||
On Tue, 11 Aug 2020 at 13:21, Derick Rethans <derick@php.net> wrote:
> 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
>
Is
<?php @[Bar()]; ?>
on it's own an error?