Closed achevillard closed 6 years ago
Bad return type for Zend\Expressive\Hal\Metadata\RouteBasedResourceMetadata::setRouteParams() method.
$metadataMap = $this->resourceGenerator->getMetadataMap(); $metadata = $metadataMap->get(Item::class); $routesParams = array_merge($metadata->getRouteParams(), ['categoryId' => $categoryId]); $metadata->setRouteParams($routesParams);
No error
throws TypeError :
Return value of Zend\\Expressive\\Hal\\Metadata\\RouteBasedResourceMetadata::setRouteParams() must be of the type array, none returned
Hello @weierophinney is it possible to fix this issue? Thanks.
Bad return type for Zend\Expressive\Hal\Metadata\RouteBasedResourceMetadata::setRouteParams() method.
Code to reproduce the issue
Expected results
No error
Actual results
throws TypeError :