Skip to content

Commit

Permalink
fix for issue: "Trying to access array offset on value of type int"
Browse files Browse the repository at this point in the history
  • Loading branch information
marcing committed Dec 18, 2019
1 parent 4254f1d commit 4ad13de
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class Zend_Search_Lucene_Index_Term
public function __construct($text, $field = null)
{
$this->field = ($field === null)? Zend_Search_Lucene::getDefaultSearchField() : $field;
$this->text = $text;
$this->text = (string)$text;
}


Expand Down

0 comments on commit 4ad13de

Please sign in to comment.