diff --git a/base/HHVMDaemon.php b/base/HHVMDaemon.php index ccd5c74..9b56aa3 100644 --- a/base/HHVMDaemon.php +++ b/base/HHVMDaemon.php @@ -180,7 +180,8 @@ public function start(): void { $dir_iter = new RecursiveDirectoryIterator($sourceRoot); $iter = new RecursiveIteratorIterator($dir_iter); - foreach ($iter as $path => $_) { + foreach ($iter as $info) { + $path = $info->getPathname(); // Source files not ending in .php need to be specifically included if (is_file($path) && substr($path, -4) !== '.php') { $contents = file_get_contents($path);