File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -181,7 +181,7 @@ public function dispatch(ResourceEvent $event)
181181 $ id = $ event ->getParam ('id ' , null );
182182 return $ this ->fetch ($ id );
183183 case 'fetchAll ' :
184- $ queryParams = $ event ->getQueryParams () ?: new Parameters () ;
184+ $ queryParams = $ event ->getQueryParams () ?: [] ;
185185 return $ this ->fetchAll ($ queryParams );
186186 case 'patch ' :
187187 $ id = $ event ->getParam ('id ' , null );
@@ -253,10 +253,10 @@ public function fetch($id)
253253 /**
254254 * Fetch all or a subset of resources
255255 *
256- * @param Parameters $params
256+ * @param array| Parameters $params
257257 * @return ApiProblem|mixed
258258 */
259- public function fetchAll (Parameters $ params )
259+ public function fetchAll ($ params = [] )
260260 {
261261 return new ApiProblem (405 , 'The GET method has not been defined for collections ' );
262262 }
You can’t perform that action at this time.
0 commit comments