File tree Expand file tree Collapse file tree 2 files changed +27
-5
lines changed Expand file tree Collapse file tree 2 files changed +27
-5
lines changed Original file line number Diff line number Diff line change 1+ <?php
2+
3+ # Comment
4+
5+ #[ExampleAttribute]
6+ #[Attr1, Attr2]
7+ class Klass
8+ {
9+ #[ExampleAttribute]
10+ function f1 () { }
11+
12+ #[WithoutArgument]
13+ #[SingleArgument(0 )]
14+ #[FewArguments('Hello ' , 'World ' )]
15+ function foo () {}
16+
17+ #[WithoutArgument] #[SingleArgument(0 )] #[FewArguments('Hello ' , 'World ' )]
18+ function bar () {}
19+
20+ #[Attr2("foo " ), Attr2("bar " )]
21+ function buz () {}
22+ }
Original file line number Diff line number Diff line change 11<?php
22
3- << ExampleAttribute>>
3+ #[ ExampleAttribute]
44function f1 () { }
55
6- << WithoutArgument>>
7- << SingleArgument (0 )>>
8- << FewArguments ('Hello ' , 'World ' )>>
6+ #[ WithoutArgument]
7+ #[ SingleArgument(0 )]
8+ #[ FewArguments('Hello ' , 'World ' )]
99function foo () {}
1010
11- << WithoutArgument>><< SingleArgument (0 )>><< FewArguments ('Hello ' , 'World ' )>>
11+ #[ WithoutArgument]#[ SingleArgument(0 )]#[ FewArguments('Hello ' , 'World ' )]
1212function bar () {}
You can’t perform that action at this time.
0 commit comments