fix match type in hAPI::handleMatch
continuous-integration/drone/push Build is passing Details

pull/96/head
maxime.batista 1 year ago
parent b89d325415
commit ae3f14c663

@ -26,12 +26,12 @@ class API {
/** /**
* @param array<string, mixed> $match * @param array<string, mixed>|false $match
* @param callable $tryGetAuthorization function to return an authorisation object for the given action (if required) * @param callable $tryGetAuthorization function to return an authorisation object for the given action (if required)
* @return HttpResponse * @return HttpResponse
* @throws Exception * @throws Exception
*/ */
public static function handleMatch(array $match, callable $tryGetAuthorization): HttpResponse { public static function handleMatch($match, callable $tryGetAuthorization): HttpResponse {
if (!$match) { if (!$match) {
return new JsonHttpResponse([ValidationFail::notFound("not found")]); return new JsonHttpResponse([ValidationFail::notFound("not found")]);
} }

Loading…
Cancel
Save