Skip to content

Commit 5b732ea

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

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Classes/Eel/ElasticSearchQueryBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ public function getFrom(): int
558558
* @param NodeInterface $node
559559
* @return array the Elasticsearch hit for the node as array, or NULL if it does not exist.
560560
*/
561-
public function getFullElasticSearchHitForNode(NodeInterface $node): array
561+
public function getFullElasticSearchHitForNode(NodeInterface $node): ?array
562562
{
563563
return $this->elasticSearchHitsIndexedByNodeFromLastRequest[$node->getIdentifier()] ?? null;
564564
}

0 commit comments

Comments
 (0)