Skip to content

Commit 9a28c90

Browse files
Merge pull request api-platform#1546 from cedriclombardot/patch-4
Fix convertType signature
2 parents decc681 + bb9c22f commit 9a28c90

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/graphql.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1644,15 +1644,15 @@ final class TypeConverter implements TypeConverterInterface
16441644
/**
16451645
* {@inheritdoc}
16461646
*/
1647-
public function convertType(Type $type, bool $input, ?string $queryName, ?string $mutationName, string $resourceClass, string $rootResource, ?string $property, int $depth)
1647+
public function convertType(Type $type, bool $input, ?string $queryName, ?string $mutationName, ?string $subscriptionName, string $resourceClass, string $rootResource, ?string $property, int $depth)
16481648
{
16491649
if ('publicationDate' === $property
16501650
&& Book::class === $resourceClass
16511651
) {
16521652
return 'DateTime';
16531653
}
16541654
1655-
return $this->defaultTypeConverter->convertType($type, $input, $queryName, $mutationName, $resourceClass, $rootResource, $property, $depth);
1655+
return $this->defaultTypeConverter->convertType($type, $input, $queryName, $mutationName, $subscriptionName, $resourceClass, $rootResource, $property, $depth);
16561656
}
16571657
16581658
/**

0 commit comments

Comments
 (0)