Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecations in GraphQl context #5554

Open
mi-wulf opened this issue Apr 20, 2023 · 4 comments
Open

Deprecations in GraphQl context #5554

mi-wulf opened this issue Apr 20, 2023 · 4 comments
Labels

Comments

@mi-wulf
Copy link

mi-wulf commented Apr 20, 2023

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
Copy link

stale bot commented Jun 19, 2023

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 stale bot added the stale label Jun 19, 2023
@stale stale bot closed this as completed Jun 26, 2023
@belmeopmenieuwesim
Copy link

same here

@belmeopmenieuwesim
Copy link

belmeopmenieuwesim commented Jun 30, 2023

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

@soyuka soyuka reopened this Jun 30, 2023
@stale stale bot removed the stale label Jun 30, 2023
@stale stale bot removed the stale label Jun 30, 2023
@xVinniVx
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants