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 1
1
<?php
2
2
3
- << ExampleAttribute>>
3
+ #[ ExampleAttribute]
4
4
function f1 () { }
5
5
6
- << WithoutArgument>>
7
- << SingleArgument (0 )>>
8
- << FewArguments ('Hello ' , 'World ' )>>
6
+ #[ WithoutArgument]
7
+ #[ SingleArgument(0 )]
8
+ #[ FewArguments('Hello ' , 'World ' )]
9
9
function foo () {}
10
10
11
- << WithoutArgument>><< SingleArgument (0 )>><< FewArguments ('Hello ' , 'World ' )>>
11
+ #[ WithoutArgument]#[ SingleArgument(0 )]#[ FewArguments('Hello ' , 'World ' )]
12
12
function bar () {}
You can’t perform that action at this time.
0 commit comments