Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Update BC policy to tell about adding/removing return types#9717

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
javiereguiluz merged 1 commit intosymfony:2.7fromnicolas-grekas:return-type
May 15, 2018

Conversation

@nicolas-grekas
Copy link
Member

Fixes#8609

Changing an argument type is only possible with a parent type.
Changing a return type is only possible with a child type.
.. [9]Allowed for the ``void`` return type.
Copy link
Member

Choose a reason for hiding this comment

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

Are you saying thatvoid is an exception then? That, for example, adding/removing a return type would be a BC break...except for void?

Copy link
MemberAuthor

@nicolas-grekasnicolas-grekasMay 2, 2018
edited
Loading

Choose a reason for hiding this comment

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

Yes, that's what I mean. Technically, PHP allows removing the return type without breaking children. But doing so would allow breaking contracts. Except for void.

sroze reacted with thumbs up emoji
@xabbuhxabbuh added this to the2.7 milestoneMay 6, 2018
@javiereguiluz
Copy link
Member

Thanks Nicolas.

@javiereguiluzjaviereguiluz merged commitc424648 intosymfony:2.7May 15, 2018
javiereguiluz added a commit that referenced this pull requestMay 15, 2018
…es (nicolas-grekas)This PR was merged into the 2.7 branch.Discussion----------Update BC policy to tell about adding/removing return typesFixes#8609Commits-------c424648 Update BC policy to tell about adding/removing return types
@nicolas-grekasnicolas-grekas deleted the return-type branchJuly 1, 2018 20:44
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@weaverryanweaverryanweaverryan left review comments

@xabbuhxabbuhxabbuh approved these changes

+2 more reviewers

@dunglasdunglasdunglas approved these changes

@ogizanagiogizanagiogizanagi approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

2.7

Development

Successfully merging this pull request may close these issues.

7 participants

@nicolas-grekas@javiereguiluz@dunglas@weaverryan@xabbuh@ogizanagi@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp