All add-ons currently require PHP 7.4 or greater.

On July 4th 2024 PHP 8.2 will be the new minimum requirement for all add-ons. Expect any add-on released after that date to require 8.2 or greater. Some releases may not immediately take advantage of 8.x specific features in PHP, which means you might, be able to continue using new releases in PHP 7.4, however, if you experience an error the first thing you should do is update to PHP 8.2 then create a support ticket if the error persists.

Please read about the changes to BoldMinded add-on licensing.

Ticket: Deprecated usort() message on templates

Status Resolved
Add-on / Version Publisher 3.5.3
Severity
EE Version 6.3.2

pixi

May 05, 2022

Hi,

I got this “Deprecated” message on my templates :

Deprecated
usort(): Returning bool from comparison function is deprecated, return an integer less than, equal to, or greater than zero
user/addons/publisher/Service/Entry/EntryResult.php, line 931

Severity: E_DEPRECATED

Not a show stopper but it is just to signal it.

#1

BoldMinded (Brian)

What version of PHP are you running?

#2

BoldMinded (Brian)

I had to google this one. Scroll down to line 958 of that file and change it to this:

return (int) $b[$this->_usort_use] <=> (int) $a[$this->_usort_use];

See if that works. It’s changing < to <=>

#3

pixi

Thanks, it seems to fix it.

PHP 8.0.1

Login to reply