From 3d5de933001d1718e907a43df162d56ed54b8a54 Mon Sep 17 00:00:00 2001 From: Côme Chilliet Date: Thu, 20 Apr 2023 10:43:00 +0200 Subject: Fix TypeError in Profiler MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Côme Chilliet --- lib/private/Profiler/FileProfilerStorage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/private/Profiler/FileProfilerStorage.php b/lib/private/Profiler/FileProfilerStorage.php index d583549332e..b68038a65c4 100644 --- a/lib/private/Profiler/FileProfilerStorage.php +++ b/lib/private/Profiler/FileProfilerStorage.php @@ -99,7 +99,7 @@ class FileProfilerStorage { $iterator = new \RecursiveIteratorIterator($iterator, \RecursiveIteratorIterator::CHILD_FIRST); foreach ($iterator as $file) { - $file = $file->getPathInfo(); + $file = (string)$file->getPathInfo(); if (is_file($file)) { unlink($file); } else { -- cgit v1.2.3