diff --git a/src/Cleanup.php b/src/Cleanup.php index 511e016a..ef1696ad 100644 --- a/src/Cleanup.php +++ b/src/Cleanup.php @@ -56,6 +56,10 @@ public function cleanup(array $sourceFiles): void $absolutePath = $this->workingDir . $relativeDirectoryPath; + if (is_link($absolutePath)) { + unlink($absolutePath); + } + if ($absolutePath !== realpath($absolutePath)) { continue; }