Skip to content

Commit

Permalink
Fix php-error in highlighter in an edge-case (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximilianKresse authored Jan 18, 2024
1 parent 362ff7f commit 522de62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Internal/Search/Highlighter/Highlighter.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ private function extractSpansFromMatches(array $matches): array
'starts' => [],
'ends' => [],
];
$lastEnd = 0;
$lastEnd = null;

foreach ($matches as $match) {
$end = $match['start'] + $match['length'];
Expand Down

0 comments on commit 522de62

Please sign in to comment.