-
Notifications
You must be signed in to change notification settings - Fork 15
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 deprecation notice in PHP 8.x #78
base: master
Are you sure you want to change the base?
Conversation
According to the documentation, all versions of PHP support the `usort` callable parameter returning an `integer`. While earlier versions silently accepted a `boolean`, PHP 8.x throws a deprecation notice: ``` Deprecation Notice: usort(): Returning bool from comparison function is deprecated, return an integer less than, equal to, or greater than zero in C:\Users\MY_USER\AppData\Roaming\Composer\vendor\sllh\composer-versions-check\src\VersionsCheck.php:54 ``` This fix (based on [this comment](soullivaneuh#75 (comment))) eliminates this notice. fixes soullivaneuh#74
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.
Confirm notice in PHP 8.x
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.
Looks good to me
Everything looks good ! Does anyone with write access can validate it too ? @soullivaneuh @EmanueleMinotto @dereuromark @TomasVotruba |
I dont have write access^^ |
Can someone please click on the merge button? |
This project is clearly completely dead for years. I created a new fork ( https://github.com/dereuromark/composer-versions-check ). |
According to the documentation, all versions of PHP support the
usort
callable parameter returning aninteger
. While earlier versions silently accepted aboolean
, PHP 8.x throws a deprecation notice:This fix (based on this comment) eliminates this notice.
fixes #74