Skip to content

Commit a739a2d

Browse files
committed
fix: null-safe check of query string key
closes #226
1 parent 711d296 commit a739a2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ServerRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public function withCookieParams(array $cookies):self {
9393
* @return array<string, string|array<string>>
9494
*/
9595
public function getQueryParams():array {
96-
parse_str($this->serverData["QUERY_STRING"], $params);
96+
parse_str($this->serverData["QUERY_STRING"] ?? "", $params);
9797
/** @var array<string, string|array<string>> $params */
9898
return $params;
9999
}

0 commit comments

Comments
 (0)