-
-
Notifications
You must be signed in to change notification settings - Fork 452
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
fix: parameter and return type of HubInterface #849
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know why I convinced myself that this could not be done without breaking BC, but apparently it works because there was just one way to get it working right now and that way is the same as the change 🚀
There is one missing thing: can you please update the CHANGELOG? |
@ste93cry that's probably because all the implementation that would be broken are possible only with PHP 7.4 where proper type widening (contravariance) is implemented: https://3v4l.org/EWG2S So if we release this before PHP 7.4 we're good 😄 |
It would be ok for the return type to use |
Changelog updated! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really quick change, then LGTM 🚀
as per https://3v4l.org/ljZp6 as discussed in getsentry#845
as per https://3v4l.org/ljZp6