From d8fe09f368964473b2b325192e4d1440b81d2b49 Mon Sep 17 00:00:00 2001 From: Sukhwinder Dhillon Date: Wed, 16 Aug 2023 09:57:05 +0200 Subject: [PATCH] DirectoryIterator: Fix `Variable '$path' is probably undefined` --- library/Icinga/Util/DirectoryIterator.php | 1 + 1 file changed, 1 insertion(+) diff --git a/library/Icinga/Util/DirectoryIterator.php b/library/Icinga/Util/DirectoryIterator.php index a2bed1c27..cee37b6b5 100644 --- a/library/Icinga/Util/DirectoryIterator.php +++ b/library/Icinga/Util/DirectoryIterator.php @@ -140,6 +140,7 @@ class DirectoryIterator implements RecursiveIterator public function next(): void { + $path = null; do { $this->files->next(); $skip = false;