Skip to content

Commit

Permalink
ensure we always return an array from Request::getParams
Browse files Browse the repository at this point in the history
Signed-off-by: Robin Appelman <robin@icewind.nl>
  • Loading branch information
icewind1991 committed Aug 28, 2018
1 parent c6b1c21 commit c0a283f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/private/AppFramework/Http/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ public function getParam(string $key, $default = null) {
* @return array the array with all parameters
*/
public function getParams(): array {
return $this->parameters;
return is_array($this->parameters) ? $this->parameters : [];
}

/**
Expand Down

0 comments on commit c0a283f

Please sign in to comment.