8000 [Feature] Update request query method signature (#440) · khomsovon/laravel-json-api@26e4355 · GitHub
[go: up one dir, main page]

Skip to content

Commit 26e4355

Browse files
jelhanlindyhopchris
authored andcommitted
[Feature] Update request query method signature (cloudcreativity#440)
Updates the `query()` method on the validated request class to match the Laravel request signature.
1 parent 05ceaf3 commit 26e4355

File 8000 tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/Http/Requests/ValidatedRequest.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,11 +148,13 @@ public function file($key): ?UploadedFile
148148
/**
149149
* Get parsed query parameters.
150150
*
151-
* @return array
151+
* @param string|null $key
152+
* @param string|array|null $default
153+
* @return string|array|null
152154
*/
153-
public function query()
155+
public function query($key = null, $default = null)
154156
{
155-
return $this->request->query();
157+
return $this->request->query($key, $default);
156158
}
157159

158160
/**

0 commit comments

Comments
 (0)
0