Browse Source
ensure we always return an array from `Request::getParams`
Signed-off-by: Robin Appelman <robin@icewind.nl>
pull/10906/head
Robin Appelman
7 years ago
No known key found for this signature in database
GPG Key ID: 42B69D8A64526EFB
1 changed files with
1 additions and
1 deletions
-
lib/private/AppFramework/Http/Request.php
|
|
|
@ -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 : []; |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
|