File tree Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,10 @@ function attribute_on_function_test() {}
22
22
#[AttributeWithParams('foo ' , bar: ['bar ' => 'foobar ' ])]
23
23
function attribute_with_params_on_function_test () {}
24
24
25
+ /* testAttributeWithShortClosureParameter */
26
+ #[AttributeWithParams(static fn ($ value ) => ! $ value )]
27
+ function attribute_with_short_closure_param_test () {}
28
+
25
29
/* testTwoAttributeOnTheSameLine */
26
30
#[CustomAttribute] #[AttributeWithParams('foo ' )]
27
31
function two_attribute_on_same_line_test () {}
Original file line number Diff line number Diff line change @@ -128,6 +128,28 @@ public function dataAttribute()
128
128
T_CLOSE_PARENTHESIS ,
129
129
],
130
130
],
131
+ [
132
+ '/* testAttributeWithShortClosureParameter */ ' ,
133
+ 17 ,
134
+ [
135
+ T_STRING ,
136
+ T_OPEN_PARENTHESIS ,
137
+ T_STATIC ,
138
+ T_WHITESPACE ,
139
+ T_FN ,
140
+ T_WHITESPACE ,
141
+ T_OPEN_PARENTHESIS ,
142
+ T_VARIABLE ,
143
+ T_CLOSE_PARENTHESIS ,
144
+ T_WHITESPACE ,
145
+ T_FN_ARROW ,
146
+ T_WHITESPACE ,
147
+ T_BOOLEAN_NOT ,
148
+ T_WHITESPACE ,
149
+ T_VARIABLE ,
150
+ T_CLOSE_PARENTHESIS ,
151
+ ],
152
+ ],
131
153
[
132
154
'/* testAttributeGrouping */ ' ,
133
155
26 ,
You can’t perform that action at this time.
0 commit comments