Skip to content

Commit f3d412e

Browse files
authored
Fix TaxonomyLoadTree::resolve return type hint. (#953)
1 parent 89327a3 commit f3d412e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Plugin/GraphQL/DataProducer/Taxonomy/TaxonomyLoadTree.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ public function __construct(
146146
* @return \GraphQL\Deferred|null
147147
* A promise that will return entities or NULL if there aren't any.
148148
*/
149-
public function resolve(string $vid, ?int $parent, ?int $max_depth, ?string $language, ?bool $access, ?AccountInterface $accessUser, ?string $accessOperation, FieldContext $context): array {
149+
public function resolve(string $vid, ?int $parent, ?int $max_depth, ?string $language, ?bool $access, ?AccountInterface $accessUser, ?string $accessOperation, FieldContext $context): ?Deferred {
150150
if (!isset($max_depth)) {
151151
$max_depth = self::MAX_DEPTH;
152152
}

0 commit comments

Comments
 (0)