Skip to content

Adding UPGRADE-2.7 about small BC break in InputDefinition #14782

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 2 commits into from
May 29, 2015

Conversation

weaverryan
Copy link
Member

Hi guys!

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #13220
License MIT
Doc PR n/a

In #13220, a small BC break was introduced when InputDefinition::getSynopsis() was given an optional argument. This, for example, breaks Behat 2.5, which overrides this method. I don't think this was noticed before, and it may be too late (or not worth it) to reverse the BC break.

So, I've at least doc'ed it.

Thanks!

weaverryan added a commit to weaverryan/Behat that referenced this pull request May 29, 2015
Without this, PHP throws an error. We're not using this argument - and I don't think that's a huge deal, but we are suppressing this error. In Symfony 2.6 and earlier before the parent argument was added, this extra arg won't cause an issue.

See symfony/symfony#13220 and symfony/symfony#14782
weaverryan added a commit to weaverryan/Behat that referenced this pull request May 29, 2015
Without this, PHP throws an error. We're not using this argument - and I don't think that's a huge deal, but we are suppressing this error. In Symfony 2.6 and earlier before the parent argument was added, this extra arg won't cause an issue.

See symfony/symfony#13220 and symfony/symfony#14782
@jakzal
Copy link
Contributor

jakzal commented May 29, 2015

👍

1 similar comment
@nicolas-grekas
Copy link
Member

👍

@fabpot
Copy link
Member

fabpot commented May 29, 2015

Thank you @weaverryan.

@fabpot fabpot merged commit a7985d2 into symfony:2.7 May 29, 2015
fabpot added a commit that referenced this pull request May 29, 2015
…on (weaverryan)

This PR was merged into the 2.7 branch.

Discussion
----------

Adding UPGRADE-2.7 about small BC break in InputDefinition

Hi guys!

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #13220
| License       | MIT
| Doc PR        | n/a

In #13220, a small BC break was introduced when `InputDefinition::getSynopsis()` was given an optional argument. This, for example, breaks Behat 2.5, which overrides this method. I don't think this was noticed before, and it may be too late (or not worth it) to reverse the BC break.

So, I've at least doc'ed it.

Thanks!

Commits
-------

a7985d2 Fixing phpdoc typo
c35f2c8 Talking about getSynopsis()
@weaverryan weaverryan deleted the getSynopsis branch May 29, 2015 17:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants