core icon indicating copy to clipboard operation
core copied to clipboard

Deprecations in GraphQl context

Open mi-wulf opened this issue 2 years ago • 4 comments

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

mi-wulf avatar Apr 20 '23 13:04 mi-wulf

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.

stale[bot] avatar Jun 19 '23 15:06 stale[bot]

same here

belmeopmenieuwesim avatar Jun 30 '23 13:06 belmeopmenieuwesim

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

belmeopmenieuwesim avatar Jun 30 '23 13:06 belmeopmenieuwesim

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

xVinniVx avatar Oct 21 '23 08:10 xVinniVx