summaryrefslogtreecommitdiff
path: root/matrix-specification/Events
diff options
context:
space:
mode:
authorDaniel Weipert <git@mail.dweipert.de>2025-12-13 16:27:53 +0100
committerDaniel Weipert <git@mail.dweipert.de>2025-12-13 16:27:53 +0100
commit2386148b8f048ba40d9f26cc97898bdcdc778ea2 (patch)
tree48ca45de3dc6133cb0225eba8c5917f813082b2b /matrix-specification/Events
parentb19a8f63ad727a3633885d3f2b81edf8181a53b9 (diff)
matrix specification splitHEADmain
Diffstat (limited to 'matrix-specification/Events')
-rw-r--r--matrix-specification/Events/PresenceEvent.php2
-rw-r--r--matrix-specification/Events/UnsignedData.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/matrix-specification/Events/PresenceEvent.php b/matrix-specification/Events/PresenceEvent.php
index c8c2023..7854444 100644
--- a/matrix-specification/Events/PresenceEvent.php
+++ b/matrix-specification/Events/PresenceEvent.php
@@ -25,7 +25,7 @@ class PresenceEvent extends SenderEvent
"last_active_ago" => $lastActiveAgo,
"presence" => $presence,
"status_msg" => $statusMessage,
- ], "is_null"),
+ ], fn ($value) => ! is_null($value)),
$sender,
EventType::PRESENCE
);
diff --git a/matrix-specification/Events/UnsignedData.php b/matrix-specification/Events/UnsignedData.php
index 924af29..3c5cd46 100644
--- a/matrix-specification/Events/UnsignedData.php
+++ b/matrix-specification/Events/UnsignedData.php
@@ -26,6 +26,6 @@ class UnsignedData implements \JsonSerializable
"prev_content" => $this->previousContent,
"redacted_because" => $this->redactedBecause,
"transaction_id" => $this->transactionId,
- ], "is_null");
+ ], fn ($value) => ! is_null($value));
}
}