Skip to content

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

@soyuka

Description

@soyuka

Discussed in #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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions