Merge pull request #10906 from nextcloud/request-params-array
ensure we always return an array from `Request::getParams`
This commit is contained in:
commit
625c81bd11
|
@ -358,7 +358,7 @@ class Request implements \ArrayAccess, \Countable, IRequest {
|
|||
* @return array the array with all parameters
|
||||
*/
|
||||
public function getParams(): array {
|
||||
return $this->parameters;
|
||||
return is_array($this->parameters) ? $this->parameters : [];
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue