From 2c1a4973bb0912e7ede4d9ca37161ca9148165fe Mon Sep 17 00:00:00 2001 From: gravel Date: Fri, 19 May 2023 14:42:13 +0000 Subject: [PATCH] Fix crash in tag serialization --- php/utils/tags.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/php/utils/tags.php b/php/utils/tags.php index 190a92d..446259c 100644 --- a/php/utils/tags.php +++ b/php/utils/tags.php @@ -48,7 +48,7 @@ */ public static function cacheable_room_tags(array $tags) { return array_map( - 'CommunityTag::__toString', + function (\CommunityTag $tag) { return $tag->__toString(); }, array_filter($tags, function(\CommunityTag $tag) { return $tag->type == TagType::USER_TAG; })