[TOOLS] Continue raising PHPStan level to 6
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user