ZF-12385: Highlighter throws PHP warning when highlighting text without match
Description
Reproduction code:
$query = Zend_Search_Lucene_Search_QueryParser::parse($phrase);
$highlighted = $query->htmlFragmentHighlightMatches($content);
When content is not matched by phrase, I recieve this PHP Warning:
{{Warning: Wrong parameter count for array_merge() in library/Zend/Search/Lucene/Document/Html.php on line 401}}
A simple example when $content is empty and $phrase is {{test}}
Comments
No comments to display