Skip to content
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

Add ReturnTypeWillChange to Bugsnag\Breadcrumbs\Recorder #630

Merged
merged 2 commits into from Sep 9, 2021

Conversation

imjoehaines
Copy link
Member

Goal

This suppresses a deprecation in PHP 8.1 which causes CI to fail, added by the "add return type declarations for internal methods" RFC

We may eventually need to avoid implementing Countable/Iterator in this class as it's not necessary and ReturnTypeWillChange may be removed at some point in the future. As that's technically a BC break (though one that is unlikely to affect anyone as this class is unlikely to be used externally) I've opted not to do that yet

This suppresses a deprecation in PHP 8.1

We may eventually need to avoid implementing Countable/Iterator in
this class as it's not necessary and ReturnTypeWillChange may be
removed at some point in the future. As that's _technically_ a BC
break (though one that is unlikely to affect anyone) I've opted not
to do that yet
@imjoehaines imjoehaines merged commit 8b27987 into next Sep 9, 2021
@imjoehaines imjoehaines deleted the fix-php-8.1-return-type branch September 9, 2021 07:40
@imjoehaines imjoehaines mentioned this pull request Sep 9, 2021
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.

None yet

2 participants