-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Change Attribute Syntax from @@ to #[] #5989
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The same changes also need to be applied to @[]
in #5928.
03802a7
to
80d4ab1
Compare
Tests for grouping? |
80d4ab1
to
8008e3c
Compare
@nikic right, i have added some now in |
--FILE-- | ||
<?php | ||
|
||
#[A1(1), A1(2), A2(3)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be good to also test that grouping works for attributes without an argument list.
8008e3c
to
4f1a879
Compare
Merged in 8b37c1e |
This is the same patch as for the @[Attr] syntax, replacing @[ with #[. No other changes are necessary.
RFC: https://wiki.php.net/rfc/shorter_attribute_syntax_change