From 602fe347c04db74937c54d22b8406f08f11cfb6f Mon Sep 17 00:00:00 2001 From: Finn <71390226+FinnPaes@users.noreply.github.com> Date: Fri, 20 Sep 2024 15:20:22 +0200 Subject: [PATCH] Make other notification getMessageText() public aswell (#361) --- src/Notifications/Notifications/CertificateExpiresSoon.php | 2 +- src/Notifications/Notifications/UptimeCheckFailed.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Notifications/Notifications/CertificateExpiresSoon.php b/src/Notifications/Notifications/CertificateExpiresSoon.php index db03339a..a5442dc7 100644 --- a/src/Notifications/Notifications/CertificateExpiresSoon.php +++ b/src/Notifications/Notifications/CertificateExpiresSoon.php @@ -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"; } diff --git a/src/Notifications/Notifications/UptimeCheckFailed.php b/src/Notifications/Notifications/UptimeCheckFailed.php index 23b260ea..52213d9d 100644 --- a/src/Notifications/Notifications/UptimeCheckFailed.php +++ b/src/Notifications/Notifications/UptimeCheckFailed.php @@ -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"; }