Skip to content

Commit e0d1424

Browse files
committed
Fix PHP 7.4 Deprecation Warning
1 parent f547248 commit e0d1424

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Syllable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,7 @@ private function parseWord($word)
637637
$scores = $this->patterns[$subword];
638638
$scores_length = $length + 1;
639639
for ($offset = 0; $offset < $scores_length; ++$offset) {
640-
$score = $scores{$offset};
640+
$score = $scores[$offset];
641641
if (!isset($before[($start + $offset)]) || $score > $before[$start + $offset]) {
642642
$before[$start + $offset] = $score;
643643
}

0 commit comments

Comments
 (0)