Skip to content
Snippets Groups Projects
Commit cf11f914 authored by Joas Schilling's avatar Joas Schilling Committed by backportbot[bot]
Browse files

Make Psalm happy

parent 8e43331d
No related branches found
No related tags found
No related merge requests found
...@@ -233,7 +233,9 @@ class Comment implements IComment { ...@@ -233,7 +233,9 @@ class Comment implements IComment {
return []; return [];
} }
$uids = array_unique($mentions[0]); $uids = array_unique($mentions[0]);
usort($uids, 'mb_strlen'); usort($uids, static function($uid1, $uid2) {
return mb_strlen($uid2) <=> mb_strlen($uid1);
});
$result = []; $result = [];
foreach ($uids as $uid) { foreach ($uids as $uid) {
$cleanUid = trim(substr($uid, 1), '"'); $cleanUid = trim(substr($uid, 1), '"');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment