From 4ad13deb6fba388249cdf995aafdc266cbe4b645 Mon Sep 17 00:00:00 2001 From: Marcin Gil Date: Wed, 18 Dec 2019 21:24:46 +0100 Subject: [PATCH] fix for issue: "Trying to access array offset on value of type int" --- .../library/Zend/Search/Lucene/Index/Term.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/zend-search-lucene/library/Zend/Search/Lucene/Index/Term.php b/packages/zend-search-lucene/library/Zend/Search/Lucene/Index/Term.php index b2328384d..8dce25160 100644 --- a/packages/zend-search-lucene/library/Zend/Search/Lucene/Index/Term.php +++ b/packages/zend-search-lucene/library/Zend/Search/Lucene/Index/Term.php @@ -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; }