Skip to content

Commit

Permalink
Merge branch 'pullrequests/styleflasher/fixed-garbage-collect'
Browse files Browse the repository at this point in the history
  • Loading branch information
rhukster committed Oct 25, 2024
2 parents 5135015 + b51a54f commit 73f2d57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GarbageCollect.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public static function dropOldFiles($directory, $days = 30, $verbose = false)
return false;
}

while ($file = readdir($dir)) {
while (false !== ($file = readdir($dir))) {
if ($file === '.' || $file === '..') {
continue;
}
Expand Down

0 comments on commit 73f2d57

Please sign in to comment.