Skip to content

Commit ab03f0b

Browse files
Merge pull request #346 from Flowpack/bugfix/make-return-type-nullable
BUGFIX: Make return type nullable
2 parents aab5e51 + 5b732ea commit ab03f0b

2 files changed

Lines changed: 2 additions & 2 deletions

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
}

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)