diff --git a/Model/ResourceModel/Post/Fulltext/Collection.php b/Model/ResourceModel/Post/Fulltext/Collection.php index 34cf3d5..59d4384 100755 --- a/Model/ResourceModel/Post/Fulltext/Collection.php +++ b/Model/ResourceModel/Post/Fulltext/Collection.php @@ -125,9 +125,9 @@ public function setStoreId($storeId) * * @return int */ - public function getStoreId() + public function getStoreId(): int { - return $this->storeId; + return (int)$this->storeId; } /** @@ -141,7 +141,7 @@ public function getStoreId() * * @return $this */ - public function addStoreFilter($store, $withAdmin = true) + public function addStoreFilter($store, $withAdmin = true): static { if (is_object($store)) { $store = $store->getId(); @@ -157,13 +157,13 @@ public function addStoreFilter($store, $withAdmin = true) /** * Add search query filter * - * @param string $query Search query text. + * @param string $term Search query text. * * @return \Comwrap\ElasticsuiteBlog\Model\ResourceModel\Post\Fulltext\Collection */ - public function addSearchFilter($query) + public function addSearchFilter($term): static { - $this->queryText = $query; + $this->queryText = $term; return $this; }