api-platform / core

The server component of API Platform: hypermedia and GraphQL APIs in minutes
https://api-platform.com
MIT License
2.43k stars 865 forks source link

Deprecations in GraphQl context #5554

Open mi-wulf opened 1 year ago

mi-wulf commented 1 year ago

API Platform version(s) affected: 3.1.7

Description
Please remove the deprecations. I get the warnings while running tests.

Example

Remaining indirect deprecation notices (2)

2x: Using getResourcePaginatedCollectionType method of TypeBuilder is deprecated since API Platform 3.1. Use getPaginatedCollectionType method instead. ...

Other deprecation notices (6)

2x: $typeBuilder argument of TypeConverter implementing "ApiPlatform\GraphQl\Type\TypeBuilderInterface" is deprecated since API Platform 3.1. It has to implement "ApiPlatform\GraphQl\Type\TypeBuilderEnumInterface" instead. ...

2x: $typeBuilder argument of FieldsBuilder implementing "ApiPlatform\GraphQl\Type\TypeBuilderInterface" is deprecated since API Platform 3.1. It has to implement "ApiPlatform\GraphQl\Type\TypeBuilderEnumInterface" instead. ...

2x: $fieldsBuilder argument of SchemaBuilder implementing "ApiPlatform\GraphQl\Type\FieldsBuilderInterface" is deprecated since API Platform 3.1. It has to implement "ApiPlatform\GraphQl\Type\FieldsBuilderEnumInterface" instead. ...

Affected files: getResourcePaginatedCollectionType: vendor/api-platform/core/src/GraphQl/Type/FieldsBuilder.php:526

ApiPlatform\GraphQl\Type\TypeBuilderEnumInterface: vendor/api-platform/core/src/GraphQl/Type/FieldsBuilder.php:46 vendor/api-platform/core/src/GraphQl/Type/FieldsBuilder.php:48 vendor/api-platform/core/src/GraphQl/Type/FieldsBuilder.php:52 vendor/api-platform/core/src/GraphQl/Type/TypeBuilder.php:39 vendor/api-platform/core/src/GraphQl/Type/TypeConverter.php:40 vendor/api-platform/core/src/GraphQl/Type/TypeConverter.php:42 vendor/api-platform/core/src/GraphQl/Type/TypeConverter.php:43

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

belmeopmenieuwesim commented 1 year ago

same here

belmeopmenieuwesim commented 1 year ago

please, re-open this issue @soyuka @dunglas .

It is caused by ApiPlatform\GraphQl\Type\TypeBuilder implementing TypeBuilderInterface. It is the same for ApiPlatform\GraphQl\Type\FieldsBuilder

xVinniVx commented 11 months ago

Any ETA about fixing this issue? It's very annoying.