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

Support PHP 8.1, avoid deprecation warning concerning \Countable::count(...) return type. #32

Merged
merged 2 commits into from
Oct 16, 2021

Conversation

bartvanhoutte
Copy link
Contributor

Added the #[\ReturnTypeWillChange] attribute on \Clue\React\Mq\Queue::count to fix a deprecation that occurs when using PHP 8.1+.

Since there does not seem to be a way to check for the absence of a deprecation message for an individual test case, I've added the convertDeprecationsToExceptions attribute on the phpunit element in phpunit.xml.dist and phpunit.xml.legacy and set it to true.

Fixes #31

@clue clue changed the title Fixed PHP 8.1 deprecation concerning \Countable::count(...) return type. Support PHP 8.1, avoid deprecation warning concerning \Countable::count(...) return type. Oct 16, 2021
@clue clue added this to the v1.4.0 milestone Oct 16, 2021
Copy link
Owner

@clue clue left a comment

Choose a reason for hiding this comment

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

@bartvanhoutte Thank you for looking into this, changes LGTM! Keep it up! :shipit:

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.

PHP 8.1 support
2 participants