Skip to content

Commit

Permalink
Fix PHP Fatal Error deleteDirectoryRecursive function in MinifyApplic…
Browse files Browse the repository at this point in the history
…ationCommand
  • Loading branch information
LunashaGit authored and simonhamp committed Feb 7, 2024
1 parent 462af51 commit c699310
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Commands/MinifyApplicationCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ protected function removeIgnoredFilesAndFolders(string $appPath): void
}
}

private function deleteDirectoryRecursive(string $directory): void
private function deleteDirectoryRecursive(string $directory): bool
{
if (! file_exists($directory)) {
return true;
Expand All @@ -106,6 +106,6 @@ private function deleteDirectoryRecursive(string $directory): void
}
}

rmdir($directory);
return rmdir($directory);
}
}

0 comments on commit c699310

Please sign in to comment.