Skip to content

Commit e455e3e

Browse files
committed
Fix stopping on empty files
1 parent fb5520d commit e455e3e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mar.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ private function run() {
110110
$checkSyntax = false;
111111
}
112112

113-
while ($lines = $this->scanner->scanNextFile()) {
113+
while (($lines = $this->scanner->scanNextFile()) !== false) {
114114
$totalFiles++;
115115

116116
//Check syntax and assign a line to grab if needed.
@@ -185,4 +185,4 @@ static public function getRealPath($path) {
185185
}
186186
}
187187
$mar = new \mar\main();
188-
?>
188+
?>

0 commit comments

Comments
 (0)