Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[CI] Ensure that all possible @return are turned into native types #42735

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
Aug 25, 2021

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