fix: fix phpstan ignores

This commit is contained in:
Michel Roux 2025-04-01 08:24:42 +00:00
parent 62a260375a
commit d2195890d5
2 changed files with 2 additions and 4 deletions

@ -55,7 +55,7 @@ class EpisodesController extends Controller
}
/**
* @return JSONResponse<Http::STATUS_OK, EpisodeActionType, array{}>
* @phpstan-ignore missingType.generics
*/
#[NoAdminRequired]
#[NoCSRFRequired]
@ -67,7 +67,6 @@ class EpisodesController extends Controller
return new JSONResponse($action->toArray());
}
/** @phpstan-ignore-next-line */
return new JSONResponse([], Http::STATUS_NOT_FOUND);
}
}

@ -30,7 +30,7 @@ class PodcastController extends Controller
}
/**
* @return JSONResponse<Http::STATUS_OK, PodcastData, array{}>
* @phpstan-ignore missingType.generics
*/
#[NoAdminRequired]
#[NoCSRFRequired]
@ -63,7 +63,6 @@ class PodcastController extends Controller
/** @var Http::STATUS_* $returnStatusCode */
$returnStatusCode = $feed->getStatusCode();
/** @phpstan-ignore-next-line */
return new JSONResponse($podcast, $returnStatusCode);
}
}