From 1e4869849953784b41ff6286c2e67ac0e57c68e8 Mon Sep 17 00:00:00 2001 From: RVxLab Date: Sat, 23 Dec 2023 10:31:56 +1000 Subject: [PATCH] Explicitly cast SplFileInfo to a string In strict mode, SplFileInfo does not implicitly get cast to a string --- src/TemporaryDirectory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TemporaryDirectory.php b/src/TemporaryDirectory.php index 4464834..71d14a3 100644 --- a/src/TemporaryDirectory.php +++ b/src/TemporaryDirectory.php @@ -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; } }