api-platform / core

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

Broken with symfony 7.1 #6411

Closed faizanakram99 closed 3 weeks ago

faizanakram99 commented 3 weeks ago

API Platform version(s) affected: x.y.z

Description
With symfony 7.1 I get this error when i try lint:container command

Invalid alias definition: alias "ApiPlatform\Serializer\SerializerContextBuilderInterface" is referencing class "ApiPlatform\OpenApi\Serializer\SerializerContextBuilder" but this class does not implement "ApiPlatform\Serializer\SerializerContextBuilderInterface". Because this alias is an interface, "ApiPlatform\OpenApi\Serializer\SerializerContextBuilder" must implement "ApiPlatform\Serializer\SerializerContextBuilderInterface".

How to reproduce
Upgrade to symfony 7.1

Possible Solution
"ApiPlatform\OpenApi\Serializer\SerializerContextBuilder" should implement "ApiPlatform\Serializer\SerializerContextBuilderInterface"

Additional Context

faizanakram99 commented 3 weeks ago

Caused by #6390

soyuka commented 3 weeks ago

98e9cace0646052b08b7142d74c89a7ed0f32b6a fixes that