- Issue created by @andreadruiz
- Status changed to Needs review
11 months ago 9:50pm 15 January 2024
Using PHP8.1, after open a new learning course I got this error message:
Deprecated function: usort(): Returning bool from comparison function is deprecated, return an integer less than, equal to, or greater than zero in opigno_learning_path_get_all_steps() (line 2722 of modules/contrib/opigno_learning_path/opigno_learning_path.module).
Since PHP 8, the usort() function has been changed: https://wiki.php.net/rfc/stable_sorting
So, on the opigno_learning_path.module file, line 2727, instead of returning bool, return an int.
N/A
N/A
N/A
N/A
Needs review
3.0
Code