Skip to content

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