Fixes deprecation notice in PHP8 for usort returning bool
Closed this issue · 0 comments
amieiro commented
Description
With PHP 8.0, I get this error:
Deprecated: usort(): Returning bool from comparison function is deprecated, return an integer less than, equal to, or greater than zero in /wordpress/glotpress/wp-content/plugins/gp-translation-helpers/includes/class-gp-route-translation-helpers.php on line 234
This is the same problem that this one in this PR.
Step-by-step reproduction instructions
Run gp-translation-helpers with PHP 8.0.