Skip to content

[Notifier] Notifier 5.2 is incompatible with 5.1 bridges #37438

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

Conversation

derrabus
Copy link
Member

Q A
Branch? 5.1
Bug fix? yes
New feature? no
Deprecations? no
Tickets N/A
License MIT
Doc PR N/A

#36611 introduced a breaking change that made the Notifier 5.2 incompatible with all Notifier bridges 5.0-5.1. Because of this, the tests are currently failing on Travis. This PR attempts to fix this.

@nicolas-grekas
Copy link
Member

This won't help: 5.1.1 will remain installable.
But we can remove the void return type in 5.1 - that's not a BC break.

@derrabus
Copy link
Member Author

This won't help: 5.1.1 will remain installable.

Right. I'd suggest to add conflict rules to notifier 5.2 that prevent the installation of 5.1 bridges. That should do the trick.

But we can remove the void return type in 5.1 - that's not a BC break.

That won't change anything. Even without the return type, a 5.1 bridge would be incompatible because Notifier 5.2 defines a return type that cannot be removed in a child class.

@nicolas-grekas nicolas-grekas merged commit b57f414 into symfony:5.1 Jun 28, 2020
@nicolas-grekas
Copy link
Member

Thank you @derrabus

@nicolas-grekas
Copy link
Member

See 0492099#diff-29cda5b384dc894f8f7675a6e84622fe for 5.2

@derrabus derrabus deleted the bugfix/incompatible-notifier-bridges branch June 28, 2020 17:48
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