Make Psalm happy
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
8e43331d47
commit
cf11f914a7
|
@ -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), '"');
|
||||||
|
|
Loading…
Reference in New Issue