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
parent
commit
c0a283fefb
No known key found for this signature in database GPG Key ID: 42B69D8A64526EFB
  1. 2
      lib/private/AppFramework/Http/Request.php

2
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 : [];
}
/**

Loading…
Cancel
Save