From ae3f14c663a0dcc8c185f3430ece2f36259bb9bf Mon Sep 17 00:00:00 2001 From: "maxime.batista" Date: Tue, 16 Jan 2024 16:12:07 +0100 Subject: [PATCH] fix match type in hAPI::handleMatch --- src/Api/API.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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")]); }