fix: ✅ fix phpstan ignores
This commit is contained in:
parent
62a260375a
commit
d2195890d5
lib/Controller
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user