diff --git a/psalm-baseline.xml b/psalm-baseline.xml index 0a8fac111..deaedeb6b 100644 --- a/psalm-baseline.xml +++ b/psalm-baseline.xml @@ -165,6 +165,13 @@ broadcasts[$id]]]> broadcasts[$id]]]> + + + + + + + broadcasts[$id]?->cancel()]]> broadcasts[$id]?->getProgress()]]> @@ -1387,6 +1394,7 @@ + @@ -1418,6 +1426,7 @@ editDate]]> + editHide]]> forwards]]> fromScheduled]]> groupedId]]> @@ -7410,9 +7419,6 @@ - - - @@ -7420,11 +7426,6 @@ - - - - - @@ -7433,15 +7434,6 @@ - - - - - - - - > 21]]> - diff --git a/src/EventHandler/Message.php b/src/EventHandler/Message.php index 52326001f..e25260279 100644 --- a/src/EventHandler/Message.php +++ b/src/EventHandler/Message.php @@ -92,7 +92,7 @@ abstract class Message extends AbstractMessage * Indicates if the post has a hidden edit, which is an edit that does not modify the actual message content. * Used to signify non-content related updates such as reactions. */ - public readonly ?bool $editHide; + public readonly bool $editHide; /** Inline or reply keyboard. */ public readonly InlineKeyboard|ReplyKeyboard|null $keyboard; @@ -153,7 +153,7 @@ abstract class Message extends AbstractMessage $this->signature = $rawMessage['post_author'] ?? null; $this->groupedId = $rawMessage['grouped_id'] ?? null; $this->editDate = $rawMessage['edit_date'] ?? null; - $this->editHide = $rawMessage['edit_hide'] ?? null; + $this->editHide = $rawMessage['edit_hide'] ?? false; $this->message = $rawMessage['message']; $this->fromScheduled = $rawMessage['from_scheduled'] ?? false;