diff --git a/src/Api/API.php b/src/Api/API.php index da00749..080db59 100644 --- a/src/Api/API.php +++ b/src/Api/API.php @@ -26,12 +26,12 @@ class API { /** - * @param array $match + * @param array|false $match * @param callable $tryGetAuthorization function to return an authorisation object for the given action (if required) * @return HttpResponse * @throws Exception */ - public static function handleMatch(array $match, callable $tryGetAuthorization): HttpResponse { + public static function handleMatch($match, callable $tryGetAuthorization): HttpResponse { if (!$match) { return new JsonHttpResponse([ValidationFail::notFound("not found")]); }