User tests: Successful: Unsuccessful:
usort throws an error when callback functions requires a reference.
JArrayHelper::_sortObjects(): Argument #1 ($a) must be passed by reference, value given
Removed & from _sortObjects parameter signature
Use JArrayHelper::sortObjects
No error message
Status | New | ⇒ | Pending |
Category | ⇒ | Libraries |
Don't think so because unit tests are successful on all (old) php versions and I know the tests are working ;-)
Status | Pending | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2022-01-02 07:53:00 |
Closed_By | ⇒ | Fedik | |
Labels |
Added:
?
?
|
danke!
@HLeithner Does it really need a real test here? I think it should be sufficient by review with respect to https://www.php.net/manual/en/function.usort.php showing by value parameters for the callback: