Skip to content

Commit

Permalink
graphql operation extends operation
Browse files Browse the repository at this point in the history
  • Loading branch information
soyuka authored Nov 15, 2024
1 parent 9304b68 commit f05ce07
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Metadata/Resource/ResourceMetadataCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
use ApiPlatform\Metadata\ApiResource;
use ApiPlatform\Metadata\CollectionOperationInterface;
use ApiPlatform\Metadata\Exception\OperationNotFoundException;
use ApiPlatform\Metadata\GraphQl\Operation as GraphQlOperation;
use ApiPlatform\Metadata\Operation;

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

public function getOperation(?string $operationName = null, bool $forceCollection = false, bool $httpOperation = false, bool $forceGraphQl = false): Operation|GraphQlOperation
public function getOperation(?string $operationName = null, bool $forceCollection = false, bool $httpOperation = false, bool $forceGraphQl = false): Operation
{
$operationName ??= '';
$cachePrefix = ($forceCollection ? self::FORCE_COLLECTION : '').($httpOperation ? self::HTTP_OPERATION : '');
Expand Down

0 comments on commit f05ce07

Please sign in to comment.