Skip to content

Commit

Permalink
Merge pull request #37 from dargmuesli/7.4
Browse files Browse the repository at this point in the history
Fix PHP 7.4 Deprecation Warning
  • Loading branch information
vanderlee authored Dec 10, 2019
2 parents f547248 + e0d1424 commit c8123b5
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 c8123b5

Please sign in to comment.