@@ -109,7 +109,7 @@ public static function provideControllerCallables(): array
109
109
[
110
110
'class ' => DummyController::class,
111
111
'method ' => 'regularCallable ' ,
112
- 'file ' => $ r3 ->getFileName (),
112
+ 'file ' => $ r1 ->getFileName (),
113
113
'line ' => $ r1 ->getStartLine (),
114
114
],
115
115
],
@@ -125,13 +125,24 @@ function () { return 'foo'; },
125
125
],
126
126
],
127
127
128
+ [
129
+ 'First-class callable closure ' ,
130
+ $ controller ->regularCallable (...),
131
+ [
132
+ 'class ' => DummyController::class,
133
+ 'method ' => 'regularCallable ' ,
134
+ 'file ' => $ r1 ->getFileName (),
135
+ 'line ' => $ r1 ->getStartLine (),
136
+ ],
137
+ ],
138
+
128
139
[
129
140
'Static callback as string ' ,
130
141
DummyController::class.'::staticControllerMethod ' ,
131
142
[
132
143
'class ' => DummyController::class,
133
144
'method ' => 'staticControllerMethod ' ,
134
- 'file ' => $ r3 ->getFileName (),
145
+ 'file ' => $ r2 ->getFileName (),
135
146
'line ' => $ r2 ->getStartLine (),
136
147
],
137
148
],
@@ -142,7 +153,7 @@ function () { return 'foo'; },
142
153
[
143
154
'class ' => DummyController::class,
144
155
'method ' => 'staticControllerMethod ' ,
145
- 'file ' => $ r3 ->getFileName (),
156
+ 'file ' => $ r2 ->getFileName (),
146
157
'line ' => $ r2 ->getStartLine (),
147
158
],
148
159
],
@@ -153,7 +164,7 @@ function () { return 'foo'; },
153
164
[
154
165
'class ' => DummyController::class,
155
166
'method ' => 'staticControllerMethod ' ,
156
- 'file ' => $ r3 ->getFileName (),
167
+ 'file ' => $ r2 ->getFileName (),
157
168
'line ' => $ r2 ->getStartLine (),
158
169
],
159
170
],
0 commit comments