Skip to content

Commit 172e2da

Browse files
committed
Merging of array with collection
1 parent 29aa72e commit 172e2da

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Processors/RouteProcessor.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,11 +169,11 @@ protected function processRequest(string $method, Stringable $uri, Collection $r
169169
]);
170170

171171
if ($method === 'GET') {
172-
return $collection->mergeRecursive(collect([
172+
return $collection->mergeRecursive([
173173
'url' => [
174174
'query' => $rules->map(fn ($value) => array_merge($value, ['disabled' => false])),
175175
]
176-
]));
176+
]);
177177
}
178178

179179
return $collection->put('body', [

0 commit comments

Comments
 (0)