Merge pull request #10906 from nextcloud/request-params-array

ensure we always return an array from `Request::getParams`
This commit is contained in:
Roeland Jago Douma 2018-08-30 21:07:49 +02:00 committed by GitHub
commit 625c81bd11
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -358,7 +358,7 @@ class Request implements \ArrayAccess, \Countable, IRequest {
* @return array the array with all parameters * @return array the array with all parameters
*/ */
public function getParams(): array { public function getParams(): array {
return $this->parameters; return is_array($this->parameters) ? $this->parameters : [];
} }
/** /**