Skip to content

Commit

Permalink
Merge pull request #10906 from nextcloud/request-params-array
Browse files Browse the repository at this point in the history
ensure we always return an array from `Request::getParams`
  • Loading branch information
rullzer authored Aug 30, 2018
2 parents f393cb7 + c0a283f commit 625c81b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/private/AppFramework/Http/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ public function getParam(string $key, $default = null) {
* @return array the array with all parameters
*/
public function getParams(): array {
return $this->parameters;
return is_array($this->parameters) ? $this->parameters : [];
}

/**
Expand Down

0 comments on commit 625c81b

Please sign in to comment.