MDL-70897 various: uasort callback can not return bool
Co-authored-by: Ruslan Kabalin <[email protected]>
This commit is contained in:
committed by
Ruslan Kabalin
co-authored by
Ruslan Kabalin
parent
9600becce3
commit
79949dc508
@@ -1327,7 +1327,7 @@ class core_message_api_testcase extends core_message_messagelib_testcase {
|
||||
$conversations = \core_message\api::get_conversations($user1->id);
|
||||
|
||||
usort($conversations, function($first, $second){
|
||||
return $first->id > $second->id;
|
||||
return $first->id <=> $second->id;
|
||||
});
|
||||
|
||||
// Consider first conversations is self-conversation.
|
||||
|
||||
Reference in New Issue
Block a user