Skip to content

Commit 29aa72e

Browse files
authored
Fix collection merging bug
1 parent dd797eb commit 29aa72e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/Processors/RouteProcessor.php

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

171171
if ($method === 'GET') {
172-
return $collection->put('url', [
173-
'query' => $rules->map(fn ($value) => array_merge($value, ['disabled' => false])),
174-
]);
172+
return $collection->mergeRecursive(collect([
173+
'url' => [
174+
'query' => $rules->map(fn ($value) => array_merge($value, ['disabled' => false])),
175+
]
176+
]));
175177
}
176178

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

0 commit comments

Comments
 (0)