diff options
Diffstat (limited to 'matrix-specification/Events')
| -rw-r--r-- | matrix-specification/Events/PresenceEvent.php | 2 | ||||
| -rw-r--r-- | matrix-specification/Events/UnsignedData.php | 2 |
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)); } } |
