Skip to content

Commit e853ac0

Browse files
committed
Merge pull request Alexia#7 from xPaw/patch-1
Fix stopping on empty files
2 parents fb5520d + e455e3e commit e853ac0

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)