Skip to content

Commit f05ce07

Browse files
authored
graphql operation extends operation
1 parent 9304b68 commit f05ce07

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Metadata/Resource/ResourceMetadataCollection.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
use ApiPlatform\Metadata\ApiResource;
1717
use ApiPlatform\Metadata\CollectionOperationInterface;
1818
use ApiPlatform\Metadata\Exception\OperationNotFoundException;
19-
use ApiPlatform\Metadata\GraphQl\Operation as GraphQlOperation;
2019
use ApiPlatform\Metadata\Operation;
2120

2221
/**
@@ -36,7 +35,7 @@ public function __construct(private readonly string $resourceClass, array $input
3635
parent::__construct($input);
3736
}
3837

39-
public function getOperation(?string $operationName = null, bool $forceCollection = false, bool $httpOperation = false, bool $forceGraphQl = false): Operation|GraphQlOperation
38+
public function getOperation(?string $operationName = null, bool $forceCollection = false, bool $httpOperation = false, bool $forceGraphQl = false): Operation
4039
{
4140
$operationName ??= '';
4241
$cachePrefix = ($forceCollection ? self::FORCE_COLLECTION : '').($httpOperation ? self::HTTP_OPERATION : '');

0 commit comments

Comments
 (0)