Skip to content

Commit 752d1e6

Browse files
authored
BUGFIX: Allow null to be returned from searchHitForNode()
As the comment says, this might return `null`
1 parent aab5e51 commit 752d1e6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Classes/Eel/ElasticSearchQueryResult.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ public function getSuggestions(): array
252252
* @return array the Elasticsearch hit, or NULL if it does not exist.
253253
* @api
254254
*/
255-
public function searchHitForNode(NodeInterface $node): array
255+
public function searchHitForNode(NodeInterface $node): ?array
256256
{
257257
return $this->elasticSearchQuery->getQueryBuilder()->getFullElasticSearchHitForNode($node);
258258
}

0 commit comments

Comments
 (0)