diff --git a/tests/apps.php b/tests/apps.php index cd173fff5d5e9..dba0b2618d2be 100644 --- a/tests/apps.php +++ b/tests/apps.php @@ -19,7 +19,7 @@ function loadDirectory($path): void { return; } - while ($name = readdir($dh)) { + while (($name = readdir($dh)) !== false) { if ($name[0] === '.') { continue; }