diff --git a/src/Manager.php b/src/Manager.php index 3b489612..32d03c7c 100644 --- a/src/Manager.php +++ b/src/Manager.php @@ -98,15 +98,11 @@ public function createData(ResourceInterface $resource, $scopeIdentifier = null, * * @param string $include * - * @return \League\Fractal\ParamBag|null + * @return \League\Fractal\ParamBag */ public function getIncludeParams($include) { - if (! isset($this->includeParams[$include])) { - return; - } - - $params = $this->includeParams[$include]; + $params = isset($this->includeParams[$include]) ? $this->includeParams[$include] : []; return new ParamBag($params); }