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

[Draft] Added detailed BC promise text#3438

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

Closed
webmozart wants to merge1 commit intosymfony:masterfromwebmozart:bc-promise

Conversation

webmozart
Copy link
Contributor

I created a detailed text about which parts of the Symfony code are covered by our BC promise. The goals are to:

  • tell our users which parts exactly are safe to use
  • tell our contributors which changes they are allowed to do

I'll continue working on the individual rules of allowed changes. Nevertheless, let me hear your feedback.

Remove default value of a parameter No No
Add type hint to a parameter No No
Remove type hint of a parameter Yes [1]_ No
Change return type Yes [1]_ No
Copy link
Member

Choose a reason for hiding this comment

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

changing the return type should be allowed only for compatible return values, to avoid breaking calling code, otherwise it is not safe to use anymore

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Yes, I initially had a footnote for that there, but then you need to define which return values are "compatible". I couldn't really find a useful definition here.

Copy link
Contributor

Choose a reason for hiding this comment

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

if changing the return type is allowed, you can basically allow everything else as well. I would rather get a fatal error that a method signature is wrong, than having some nasty bugs because of changed return type, likearray[0] is suddenlystring[0].

@wouterj
Copy link
Member

fyi, this needs a rebase

@webmozart
Copy link
ContributorAuthor

Replaced by#3439 (correctly rebased onto 2.1 now).

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

4 participants
@webmozart@wouterj@stof@Tobion

[8]ページ先頭

©2009-2025 Movatter.jp