Skip to content

Enforce return types on all components #60697

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
merged 1 commit into from
Jun 5, 2025

Conversation

nicolas-grekas
Copy link
Member

Q A
Branch? 8.0
Bug fix? no
New feature? yes
Deprecations? no
Issues -
License MIT

We decided to postpone adding those native return types because they were too disruptive.
But after 2 years minimum of deprecation notices, let's give it another try.
I'm leaving the contracts out as bumping a major version of them feels too costly for the community (dependency hell ahead).

@mttsch
Copy link
Contributor

mttsch commented Jun 4, 2025

Nitpick: There is a typo in the commit message: Enforce vs Enfore.

@nicolas-grekas nicolas-grekas changed the title Enfore return types on all components Enforce return types on all components Jun 5, 2025
@nicolas-grekas nicolas-grekas merged commit 2c24370 into symfony:8.0 Jun 5, 2025
7 of 10 checks passed
@stof
Copy link
Member

stof commented Jun 5, 2025

@nicolas-grekas this should probably be mentioned in the changelog though.

@nicolas-grekas nicolas-grekas deleted the ret-types branch June 5, 2025 15:46
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.

4 participants