Skip to content

[DependencyInjection] 6.0 [autowiring] remove mention to @required #17654

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

Merged

Conversation

alexislefebvre
Copy link
Contributor

Symfony 6+ requires PHP 8, so #[Required] can be used in all cases, and mentioning @required doesn't add any value.

@carsonbot carsonbot changed the title 6.0 [autowiring] remove mention to @required [DependencyInjection] 6.0 [autowiring] remove mention to @required Jan 7, 2023
@javiereguiluz javiereguiluz added this to the 6.0 milestone Jan 7, 2023
@javiereguiluz
Copy link
Member

Thank you Alexis.

@javiereguiluz javiereguiluz merged commit 154d86b into symfony:6.0 Jan 7, 2023
@alexislefebvre alexislefebvre deleted the remove-mention-to-required branch January 7, 2023 12:05
javiereguiluz added a commit that referenced this pull request Jan 7, 2023
…on of `@required` in service_container (alexislefebvre)

This PR was merged into the 6.0 branch.

Discussion
----------

[DependencyInjection] 6.0 [injection_types] remove mention of `@required` in service_container

Same logic than in #17654:

Symfony 6+ requires PHP 8, so `#[Required]` can be used in all cases, and mentioning ``@required`` doesn't add any value.

Commits
-------

76c0424 remove mention to required in service_container
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants