diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index e1bed71..a4c90ef 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -92,6 +92,9 @@ jobs:
- name: Upload to Codecov
uses: codecov/codecov-action@v5
+ with:
+ token: ${{ secrets.CODECOV_TOKEN }}
+ slug: PhpGt/Http
phpstan:
runs-on: ubuntu-latest
diff --git a/phpcs.xml b/phpcs.xml
index 1fa70a0..ecbe2b7 100644
--- a/phpcs.xml
+++ b/phpcs.xml
@@ -24,7 +24,6 @@
-
diff --git a/src/ServerRequest.php b/src/ServerRequest.php
index ce51cc9..6c69bbb 100644
--- a/src/ServerRequest.php
+++ b/src/ServerRequest.php
@@ -93,7 +93,7 @@ public function withCookieParams(array $cookies):self {
* @return array>
*/
public function getQueryParams():array {
- parse_str($this->serverData["QUERY_STRING"], $params);
+ parse_str($this->serverData["QUERY_STRING"] ?? "", $params);
/** @var array> $params */
return $params;
}