api-platform / core

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

Upgrade to Symfony 7.1 seems to be breaking container linting #6407

Closed soyuka closed 3 months ago

soyuka commented 3 months ago

Discussed in https://github.com/api-platform/core/discussions/6406

Originally posted by **herndlm** June 3, 2024 Hi, not sure yet if this is issue is coming from our app, Symfony or API Platform. I just upgraded from Symfony 7.0 without deprecations to Symfony 7.1. Tests, static analysis and functionality of the app seems fine, but `bin/console lint:container` fails with the following ``` In CheckAliasValidityPass.php line 44: Invalid alias definition: alias "ApiPlatform\Serializer\SerializerContextBuilderInterface" is referencing class "ApiPlatform\OpenApi\Serializer\SerializerContextBuilder" but this class does not implement "ApiPlatform\Seria lizer\SerializerContextBuilderInterface". Because this alias is an interface, "ApiPlatform\OpenApi\Serializer\SerializerContextBuilder" must implement "ApiPlatform\Serializer\SerializerContextBuilderInterface". ``` Any ideas what the issue might be here?