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