diff options
Diffstat (limited to 'matrix-specification/Data/Room/ThreadNotificationCounts.php')
| -rw-r--r-- | matrix-specification/Data/Room/ThreadNotificationCounts.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/matrix-specification/Data/Room/ThreadNotificationCounts.php b/matrix-specification/Data/Room/ThreadNotificationCounts.php index 346aeb3..602de61 100644 --- a/matrix-specification/Data/Room/ThreadNotificationCounts.php +++ b/matrix-specification/Data/Room/ThreadNotificationCounts.php @@ -15,6 +15,6 @@ class ThreadNotificationCounts implements \JsonSerializable return array_filter([ "highlight_count" => $this->highlightCount, "notification_count" => $this->notificationCount, - ], "is_null"); + ], fn ($value) => ! is_null($value)); } } |
