From 48dcc9e95a7467b9e8762ac56eed069e65cd912e Mon Sep 17 00:00:00 2001 From: Mark van Eijk Date: Fri, 24 Nov 2023 09:38:41 +0100 Subject: [PATCH] wip --- src/LaravelOKServiceProvider.php | 2 +- src/Listeners/SendCheckFailedNotification.php | 2 +- src/OK.php | 4 +++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/LaravelOKServiceProvider.php b/src/LaravelOKServiceProvider.php index a141b74..3f6e267 100644 --- a/src/LaravelOKServiceProvider.php +++ b/src/LaravelOKServiceProvider.php @@ -35,7 +35,7 @@ public function configurePackage(Package $package): void }); } - public function packageBooted() + public function packageBooted(): void { $this->silenceQueueHeartbeatJob(); } diff --git a/src/Listeners/SendCheckFailedNotification.php b/src/Listeners/SendCheckFailedNotification.php index b4c6b9f..10efe24 100644 --- a/src/Listeners/SendCheckFailedNotification.php +++ b/src/Listeners/SendCheckFailedNotification.php @@ -9,7 +9,7 @@ class SendCheckFailedNotification { - public function handle(CheckFailed $event) + public function handle(CheckFailed $event): void { if (! $this->shouldSendNotification($event->check)) { return; diff --git a/src/OK.php b/src/OK.php index 6a43e45..fcb3e3f 100755 --- a/src/OK.php +++ b/src/OK.php @@ -2,6 +2,8 @@ namespace Vormkracht10\LaravelOK; +use Illuminate\Support\Collection; + class OK { protected array $checks = []; @@ -13,7 +15,7 @@ public function checks(array $checks): self return $this; } - public function configuredChecks() + public function configuredChecks(): Collection { return collect($this->checks); }