Skip to content

Conversation

nicolas-grekas
Copy link
Member

@nicolas-grekas nicolas-grekas commented Aug 25, 2021

Q A
Branch? 6.0
Bug fix? no
New feature? yes
Deprecations? no
Tickets #40154
License MIT
Doc PR -

This PR is the final step to close the topic of return types for Symfony 6.

It replaces #42496 by not adding return types to the classes/interfaces that break cross-component deps.

It enforces that all @return from 5.4 are turned into native types in 6.0, with the known list of exceptions from #42496.

@nicolas-grekas nicolas-grekas added this to the 6.0 milestone Aug 25, 2021
@nicolas-grekas nicolas-grekas force-pushed the force-ret-types branch 2 times, most recently from d32b12e to 25172d7 Compare August 25, 2021 15:08
- sed -i 's/ *"\*\*\/Tests\/"//' composer.json
- composer u -o
- SYMFONY_PATCH_TYPE_DECLARATIONS='force=2' php .github/patch-types.php
- git diff -U2 composer.json src/ >.github/expected-missing-return-types.diff
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wouldn't this remove those instructions ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that's right, we'll catch this by reviews I guess :)

@nicolas-grekas nicolas-grekas merged commit 83af02d into symfony:6.0 Aug 25, 2021
@nicolas-grekas nicolas-grekas deleted the force-ret-types branch August 25, 2021 16:09
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.

3 participants