Skip to content

Add return types to bridges #42501

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 13, 2021

Conversation

nicolas-grekas
Copy link
Member

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

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

Extracted from #42496

@nicolas-grekas
Copy link
Member Author

🟢

Comment on lines 40 to 41
*
* @return self|null
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
*
* @return self|null

Copy link
Member Author

@nicolas-grekas nicolas-grekas Aug 12, 2021

Choose a reason for hiding this comment

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

I'll delegate all similar changes to php-cs-fixer when it can do it.

Copy link
Member

Choose a reason for hiding this comment

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

Okay. It's just that you've already removed the return annotations from other methods in this PR, but not here.

Copy link
Member Author

@nicolas-grekas nicolas-grekas Aug 12, 2021

Choose a reason for hiding this comment

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

yep, looks like something to fix for php-cs-fixer when union types are used

@nicolas-grekas nicolas-grekas merged commit 7d2820c into symfony:6.0 Aug 13, 2021
@nicolas-grekas nicolas-grekas deleted the return-types-bridges branch August 13, 2021 09:42
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