Skip to content

Commit 48ea972

Browse files
authored
Continue With ForEach
Prevents endless while loop, that I've targeted by mistake in 481f0fc.
1 parent 65ba5b9 commit 48ea972

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Source/File.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,15 +114,15 @@ private function loadLanguage()
114114
$this->max_pattern_length = $strlen;
115115
}
116116
}
117-
continue 2; // next token
117+
continue 3; // next token
118118

119119
case 'hyphenation':
120120
if (preg_match('~^\S+~u', substr($line, $offset), $m) === 1) {
121121
$hyphenation = preg_replace('~\-~', '', $m[0]);
122122
$this->hyphenations[$hyphenation] = $m[0];
123123
$offset += strlen($m[0]);
124124
}
125-
continue 2; // next token
125+
continue 3; // next token
126126
}
127127
}
128128

0 commit comments

Comments
 (0)