Skip to content

Commit

Permalink
Merge branch 'master' into improve-header
Browse files Browse the repository at this point in the history
  • Loading branch information
l0gicgate authored Mar 7, 2023
2 parents b35ddd6 + bd76383 commit 7c83e37
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@
"adriansuter/php-autoload-override": "^1.4",
"http-interop/http-factory-tests": "^0.9.0",
"php-http/psr7-integration-tests": "dev-master",
"phpspec/prophecy": "^1.16",
"phpspec/prophecy": "^1.17",
"phpspec/prophecy-phpunit": "^2.0",
"phpstan/phpstan": "^1.9",
"phpunit/phpunit": "^9.5",
"phpstan/phpstan": "^1.10",
"phpunit/phpunit": "^9.6",
"squizlabs/php_codesniffer": "^3.7"
},
"provide": {
Expand Down
7 changes: 4 additions & 3 deletions src/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -266,10 +266,11 @@ public function getQueryParams(): array
return [];
}

parse_str($this->uri->getQuery(), $this->queryParams); // <-- URL decodes data
assert(is_array($this->queryParams));
// Decode URL data
parse_str($this->uri->getQuery(), $this->queryParams);

return $this->queryParams;
// @phpstan-ignore-next-line
return is_array($this->queryParams) ? $this->queryParams : [];
}

/**
Expand Down

0 comments on commit 7c83e37

Please sign in to comment.