From e0d1424fc559fa61e7791d415d2b2752d8904e38 Mon Sep 17 00:00:00 2001 From: Jonas Thelemann Date: Tue, 3 Dec 2019 12:35:52 +0100 Subject: [PATCH] Fix PHP 7.4 Deprecation Warning --- src/Syllable.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Syllable.php b/src/Syllable.php index a9f5c7d..7985661 100644 --- a/src/Syllable.php +++ b/src/Syllable.php @@ -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; }