Skip to content

Commit

Permalink
Make other notification getMessageText() public aswell (#361)
Browse files Browse the repository at this point in the history
  • Loading branch information
FinnPaes authored Sep 20, 2024
1 parent 5deb319 commit 602fe34
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Notifications/Notifications/CertificateExpiresSoon.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public function setEvent(SoonExpiringSslCertificateFoundEvent $event)
return $this;
}

protected function getMessageText(): string
public function getMessageText(): string
{
return "SSL certificate for {$this->getMonitor()->url} expires soon";
}
Expand Down
2 changes: 1 addition & 1 deletion src/Notifications/Notifications/UptimeCheckFailed.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public function setEvent(MonitorFailedEvent $event): self
return $this;
}

protected function getMessageText(): string
public function getMessageText(): string
{
return "{$this->getMonitor()->url} seems down";
}
Expand Down

0 comments on commit 602fe34

Please sign in to comment.