Skip to content

Commit

Permalink
Make other notification getMessageText() public aswell
Browse files Browse the repository at this point in the history
  • Loading branch information
FinnPaes committed Jul 25, 2024
1 parent 543d72f commit c617734
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 c617734

Please sign in to comment.