[TOOLS] Continue raising PHPStan level to 6

This commit is contained in:
2022-10-19 22:39:17 +01:00
parent c31f3d4997
commit 2fd46ca886
89 changed files with 646 additions and 278 deletions

View File

@@ -58,7 +58,7 @@ class Cover
* @throws ClientException Invalid form
* @throws ServerException Invalid file type
*
* @return array template
* @return ControllerResultType
*/
public static function coverSettings(Request $request): array
{
@@ -113,7 +113,7 @@ class Cover
// Only delete files if the commit went through
if ($old_file != null) {
foreach ($old_file as $f) {
@unlink($f);
@unlink($f->getPath());
}
}
throw new RedirectException();
@@ -131,7 +131,7 @@ class Cover
DB::remove($cover);
DB::flush();
foreach ($old_file as $f) {
@unlink($f);
@unlink($f->getPath());
}
throw new RedirectException();
}