Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Annotation @required causing issue after migrating from 6.0 to 6.1 #48792

Copy link
Copy link
Closed
@jeanatpi

Description

@jeanatpi
Issue body actions

Symfony version(s) affected

6.1.0

Description

Hello,

I just tried to migrate my Symfony 6.0 to 6.1 and since then I have the following issue:

[Semantical Error] The annotation "@Symfony\Contracts\Service\Attribute\Required" in method Symfony\Bundle\FrameworkBundle\Controller\AbstractController::setContainer() was never imported. Did you maybe forget to add a "use" statement for this annotation?

When I remove "@required" annotation from AbstractController.php file if works properly.

Any ideas on why I have this error suddently raised?

How to reproduce

I'm not sure on how to provide a reproducer...

Possible Solution

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.