diff options
author | Joas Schilling <coding@schilljs.com> | 2021-01-29 10:13:14 +0100 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2021-02-11 09:35:36 +0000 |
commit | cf11f914a72489321bd2065782af3c3ea4900b10 (patch) | |
tree | ff11d0f47f49c04e1635eab96143bc51bf671963 | |
parent | 8e43331d4719ee23f0f923f0cd66dc7b59e636ab (diff) | |
download | nextcloud-server-cf11f914a72489321bd2065782af3c3ea4900b10.tar.gz nextcloud-server-cf11f914a72489321bd2065782af3c3ea4900b10.zip |
Make Psalm happy
Signed-off-by: Joas Schilling <coding@schilljs.com>
-rw-r--r-- | lib/private/Comments/Comment.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/private/Comments/Comment.php b/lib/private/Comments/Comment.php index c838e9571c6..e2d32e74850 100644 --- a/lib/private/Comments/Comment.php +++ b/lib/private/Comments/Comment.php @@ -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), '"'); |