Title: Deprecated: usort(): Returning bool from comparison function
Last modified: May 30, 2021

---

# Deprecated: usort(): Returning bool from comparison function

 *  Resolved [Bjarne Oldrup](https://wordpress.org/support/users/oldrup/)
 * (@oldrup)
 * [5 years ago](https://wordpress.org/support/topic/deprecated-usort-returning-bool-from-comparison-function/)
 * Hey!
 * On a development site, running PHP 8.0.3 with debug on, this warning is thrown
   in Accessibility Checker settings:
 * `Deprecated: usort(): Returning bool from comparison function is deprecated, 
   return an integer less than, equal to, or greater than zero in /wp-content/plugins/
   accessibility-checker/partials/settings-page.php on line 16`
 * I’ve dug up a blog post on the topic here: [https://lindevs.com/sort-comparison-functions-that-return-boolean-value-is-deprecated-in-php-8-0/](https://lindevs.com/sort-comparison-functions-that-return-boolean-value-is-deprecated-in-php-8-0/)
 * Are you able to reproduce this warning?
 * Bjarne

Viewing 1 replies (of 1 total)

 *  Plugin Author [Steve Jones](https://wordpress.org/support/users/stevejonesdev/)
 * (@stevejonesdev)
 * [5 years ago](https://wordpress.org/support/topic/deprecated-usort-returning-bool-from-comparison-function/#post-14508376)
 * Hi [@oldrup](https://wordpress.org/support/users/oldrup/),
 * I’ve create a low priority issue in our GitHub to address the deprecation in 
   future versions of PHP. Thanks for identifying and sharing this warning with 
   us!
 * You can track progress on this issue on our GitHub.
    [https://github.com/equalizedigital/accessibility-checker/issues/33](https://github.com/equalizedigital/accessibility-checker/issues/33)
 * Steve

Viewing 1 replies (of 1 total)

The topic ‘Deprecated: usort(): Returning bool from comparison function’ is closed
to new replies.

 * ![](https://ps.w.org/accessibility-checker/assets/icon-256x256.png?rev=3094626)
 * [Equalize Digital Accessibility Checker - WCAG, ADA, EAA and Section 508 compliance](https://wordpress.org/plugins/accessibility-checker/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/accessibility-checker/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/accessibility-checker/)
 * [Active Topics](https://wordpress.org/support/plugin/accessibility-checker/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/accessibility-checker/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/accessibility-checker/reviews/)

## Tags

 * [php 8](https://wordpress.org/support/topic-tag/php-8/)

 * 1 reply
 * 2 participants
 * Last reply from: [Steve Jones](https://wordpress.org/support/users/stevejonesdev/)
 * Last activity: [5 years ago](https://wordpress.org/support/topic/deprecated-usort-returning-bool-from-comparison-function/#post-14508376)
 * Status: resolved