Skip to content

Commit

Permalink
Fix PHP 7.4 Deprecation Warning
Browse files Browse the repository at this point in the history
  • Loading branch information
dargmuesli committed Dec 3, 2019
1 parent f547248 commit e0d1424
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Syllable.php
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,7 @@ private function parseWord($word)
$scores = $this->patterns[$subword];
$scores_length = $length + 1;
for ($offset = 0; $offset < $scores_length; ++$offset) {
$score = $scores{$offset};
$score = $scores[$offset];
if (!isset($before[($start + $offset)]) || $score > $before[$start + $offset]) {
$before[$start + $offset] = $score;
}
Expand Down

0 comments on commit e0d1424

Please sign in to comment.