Fix phpstan discovered issues

This commit is contained in:
DariusIII
2026-05-30 23:31:00 +02:00
parent 51aaf2b130
commit a0e78e7385
37 changed files with 200 additions and 208 deletions
+3 -1
View File
@@ -137,7 +137,9 @@ final class NzbServicePathResolutionTest extends TestCase
);
foreach ($iterator as $item) {
if ($item->isDir()) {
if ($item->isLink()) {
unlink($item->getPathname());
} elseif ($item->isDir()) {
rmdir($item->getPathname());
} else {
unlink($item->getPathname());