Skip to content

Commit

Permalink
Merge pull request #81 from RVxLab/explicit-string-cast-delete-directory
Browse files Browse the repository at this point in the history
[2.x] Fix directories not being deleted in strict mode
  • Loading branch information
freekmurze authored Dec 25, 2023
2 parents c4f296f + 1e48698 commit 76949fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TemporaryDirectory.php
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ protected function deleteDirectory(string $path): bool
}

foreach (new FilesystemIterator($path) as $item) {
if (! $this->deleteDirectory($item)) {
if (! $this->deleteDirectory((string) $item)) {
return false;
}
}
Expand Down

0 comments on commit 76949fa

Please sign in to comment.