mirror of
https://github.com/nextcloud/server.git
synced 2026-02-11 14:54:02 -05:00
ensure we always return an array from Request::getParams
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
c6b1c21b8f
commit
c0a283fefb
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue