Publisher does not support the Fluid field type. Please do not contact asking when support will be available.

If you purchased an add-on from expressionengine.com, be sure to visit boldminded.com/claim to add the license to your account here on boldminded.com.

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