Skip to content

Commit

Permalink
Use strict temp removing.
Browse files Browse the repository at this point in the history
  • Loading branch information
janbarasek authored Jan 14, 2021
1 parent a96690f commit 0f0a1e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PackageRegistrator.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ public static function composerPostAutoloadDump(): void
FileSystem::delete(dirname(__DIR__, 4) . '/app/config/package.neon');
if (\is_dir($tempDir = dirname(__DIR__, 4) . '/temp')) {
foreach (new \FilesystemIterator($tempDir) as $item) {
FileSystem::delete((string) $item->getPathname());
FileSystem::delete(\is_string($item) ? $item : (string) $item->getPathname());
}
}
} catch (\Throwable $e) {
Expand Down

0 comments on commit 0f0a1e6

Please # to comment.