8000 [HttpKernel][DataCollectorInterface] Ease compatibility by fancyweb · Pull Request #34230 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[HttpKernel][DataCollectorInterface] Ease compatibility #34230

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

Conversation

fancyweb
Copy link
Contributor
@fancyweb fancyweb commented Nov 4, 2019
Q A
Branch? 4.3
Bug fix? no
New feature? no
Deprecations? no
Tickets https://github.com/symfony/symfony/pull/33065/files#r342109866
License MIT
Doc PR -

To ease data collectors being compatible from 4.3 to 5.0.

Copy link
Member
@nicolas-grekas nicolas-grekas left a comment

Choose a reason for hiding this comment

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

(once comment is addressed)

This is allowed by the BC promise - and is the only way to make this argument accept Throwable in Symfony 5.0, while still allowing third-party bundles to be compatible with 3.4 (since most are as of now)

@fancyweb fancyweb force-pushed the http-kernel-data-collector-interface-allow-throwable branch from 7154e1c to 55f85b2 Compare November 4, 2019 18:04
@nicolas-grekas
Copy link
Member

After talking with @fabpot, I'm going to merge this change on 4.3.

@nicolas-grekas nicolas-grekas modified the milestones: 3.4, 4.3 Nov 5, 2019
@nicolas-grekas nicolas-grekas changed the base branch from 3.4 to 4.3 November 5, 2019 13:42
@nicolas-grekas nicolas-grekas force-pushed the http-kernel-data-collector-interface-allow-throwable branch from 55f85b2 to 761df46 Compare November 5, 2019 13:42
@nicolas-grekas
Copy link
Member

Thank you @fancyweb.

nicolas-grekas added a commit that referenced this pull request Nov 5, 2019
…(fancyweb)

This PR was submitted for the 3.4 branch but it was merged into the 4.3 branch instead.

Discussion
----------

[HttpKernel][DataCollectorInterface] Ease compatibility

| Q             | A
| ------------- | ---
| Branch?       | 4.3
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | https://github.com/symfony/symfony/pull/33065/files#r342109866
| License       | MIT
| Doc PR        | -

To ease data collectors being compatible from 4.3 to 5.0.

Commits
-------

761df46 [HttpKernel][DataCollectorInterface] Ease compatibility
@nicolas-grekas nicolas-grekas merged commit 761df46 into symfony:4.3 Nov 5, 2019
@fancyweb fancyweb deleted the http-kernel-data-collector-interface-allow-throwable branch November 5, 2019 14:32
nicolas-grekas added a commit that referenced this pull request Nov 6, 2019
…-grekas)

This PR was merged into the 4.4 branch.

Discussion
----------

[DoctrineBridge] fix min version of http-kernel

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | -
| License       | MIT
| Doc PR        | -

Required after #34257 and #34230

Commits
-------

69ba86b [DoctrineBridge] fix min version of http-kernel
@teohhanhui
Copy link
Contributor

This is allowed by the BC promise

Actually, the note on the BC promise page is inaccurate. Only an optional argument could be removed:

Works: https://3v4l.org/voGVW
Does not work: https://3v4l.org/C7SD4

@nicolas-grekas
Copy link
Member
nicolas-grekas commented Nov 8, 2019

Correct, can you please send a PR to the corresponding doc page?

wouterj added a commit to symfony/symfony-docs that referenced this pull request Nov 23, 2019
…hanhui)

This PR was merged into the 3.4 branch.

Discussion
----------

BC promise: only optional arguments can be removed

Fixes symfony/symfony#34230 (comment)

I've changed `Yes` to `No`, since it makes more sense, i.e. it's not allowed, unless...

Additional question: Should I also change `No` to `No [3]_` for traits? Or is there a specific reason why it's absolutely not allowed on traits?

Commits
-------

ef477e3 BC promise: only optional arguments can be removed
@alcaeus
Copy link
Contributor
alcaeus commented Nov 27, 2019

The fact that this change wasn't merged into 3.4 makes supporting Symfony 3.4 in a bundle unnecessarily complicated: Symfony 5 and Symfony 3.4 can't be supported in the same version due to this incompatibility. @fabpot what was the reason to only merge this into 4.3, but not 3.4?

@fabpot
Copy link
Member
fabpot commented Nov 27, 2019

I should have merged it in 4.4 as this is not a bug fix. I agreed to merge it in 4.3 to ease the migration path. Our goal is that third-parties can support 2 consecutive versions (3 and 4 OR 4 and 5). Supporting 3, 4, and 5 is not possible.

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.

6 participants
0