Make Psalm happy

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2021-01-29 10:13:14 +01:00 committed by Roeland Jago Douma
parent 1344c61145
commit ef7ed47f14
1 changed files with 3 additions and 1 deletions

View File

@ -233,7 +233,9 @@ class Comment implements IComment {
return [];
}
$uids = array_unique($mentions[0]);
usort($uids, 'mb_strlen');
usort($uids, static function($uid1, $uid2) {
return mb_strlen($uid2) <=> mb_strlen($uid1);
});
$result = [];
foreach ($uids as $uid) {
$cleanUid = trim(substr($uid, 1), '"');