Skip to content

Commit 86e6ad5

Browse files
authored
BUGFIX: Optional return for getFullElasticSearchHitForNode
1 parent 7910fd4 commit 86e6ad5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Classes/Eel/ElasticSearchQueryBuilder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ public function getTotalItems(): int
548548
/**
549549
* @return int
550550
*/
551-
public function getLimit(): inte
551+
public function getLimit(): int
552552
{
553553
return $this->limit;
554554
}
@@ -567,7 +567,7 @@ public function getFrom(): int
567567
* @param NodeInterface $node
568568
* @return array the Elasticsearch hit for the node as array, or NULL if it does not exist.
569569
*/
570-
public function getFullElasticSearchHitForNode(NodeInterface $node): array
570+
public function getFullElasticSearchHitForNode(NodeInterface $node):? array
571571
{
572572
return $this->elasticSearchHitsIndexedByNodeFromLastRequest[$node->getIdentifier()] ?? null;
573573
}

0 commit comments

Comments
 (0)