From c0a283fefb166e7ca09ef74898564fdd968cc2b1 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Tue, 28 Aug 2018 18:11:42 +0200 Subject: ensure we always return an array from `Request::getParams` Signed-off-by: Robin Appelman --- lib/private/AppFramework/Http/Request.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/private/AppFramework/Http') diff --git a/lib/private/AppFramework/Http/Request.php b/lib/private/AppFramework/Http/Request.php index 86ba884141f..0485d178b49 100644 --- a/lib/private/AppFramework/Http/Request.php +++ b/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 : []; } /** -- cgit v1.2.3