Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

Commit

Permalink
pass 3.9 typechecker
Browse files Browse the repository at this point in the history
  • Loading branch information
fredemmott committed Aug 21, 2015
1 parent 203f7d1 commit 04c1637
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion base/HHVMDaemon.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 04c1637

Please sign in to comment.