diff --git a/src/Casts/CompressedText.php b/src/Casts/CompressedText.php index fb45938..7431bef 100644 --- a/src/Casts/CompressedText.php +++ b/src/Casts/CompressedText.php @@ -10,9 +10,7 @@ class CompressedText implements CastsAttributes * Cast the given value. * * @param \Illuminate\Database\Eloquent\Model $model - * @param string $key * @param mixed $value - * @param array $attributes * @return mixed */ public function get($model, string $key, $value, array $attributes) @@ -24,9 +22,7 @@ public function get($model, string $key, $value, array $attributes) * Prepare the given value for storage. * * @param \Illuminate\Database\Eloquent\Model $model - * @param string $key * @param mixed $value - * @param array $attributes * @return mixed */ public function set($model, string $key, $value, array $attributes) diff --git a/src/Concerns/LogNotification.php b/src/Concerns/LogNotification.php index c2e1fc1..b32c990 100644 --- a/src/Concerns/LogNotification.php +++ b/src/Concerns/LogNotification.php @@ -15,7 +15,7 @@ public function getCurrentAttempt(): int return 0; } - public function setCurrentAttempt(?int $attempt = null): void + public function setCurrentAttempt(int $attempt = null): void { if ($attempt === null) { $attempt = $this->getCurrentAttempt() + 1; diff --git a/src/Contracts/ShouldLogNotification.php b/src/Contracts/ShouldLogNotification.php index 66241c2..921a355 100644 --- a/src/Contracts/ShouldLogNotification.php +++ b/src/Contracts/ShouldLogNotification.php @@ -6,5 +6,5 @@ interface ShouldLogNotification { public function getCurrentAttempt(): int; - public function setCurrentAttempt(?int $attempt = null): void; + public function setCurrentAttempt(int $attempt = null): void; } diff --git a/src/Loggers/SentMessageLogger.php b/src/Loggers/SentMessageLogger.php index 8c0bfe5..ac9a264 100644 --- a/src/Loggers/SentMessageLogger.php +++ b/src/Loggers/SentMessageLogger.php @@ -62,7 +62,6 @@ protected function convertHeaders(Headers $getHeaders): array /** * @param DataPart[] $getAttachments - * @return array */ protected function listAttachments(array $getAttachments): array { @@ -75,8 +74,6 @@ protected function listAttachments(array $getAttachments): array /** * Get the name of the mailable. - * - * @param \Illuminate\Mail\Events\MessageSent $event */ protected function getMailable(MessageSent $event): array { @@ -90,7 +87,6 @@ protected function getMailable(MessageSent $event): array /** * Determine whether the mailable was queued. * - * @param \Illuminate\Mail\Events\MessageSent $event * @return bool */ protected function getQueuedStatus(MessageSent $event) diff --git a/src/Loggers/SentNotificationLogger.php b/src/Loggers/SentNotificationLogger.php index 43567fb..6f1f70e 100644 --- a/src/Loggers/SentNotificationLogger.php +++ b/src/Loggers/SentNotificationLogger.php @@ -161,7 +161,6 @@ public function resolveMessage(string $channel, Notification $notification, $not * Format the given notifiable into a tag. * * @param mixed $notifiable - * @return string */ private function formatNotifiable($notifiable): string { diff --git a/src/Notifications/ChannelManager.php b/src/Notifications/ChannelManager.php index 7babd1c..04421ed 100644 --- a/src/Notifications/ChannelManager.php +++ b/src/Notifications/ChannelManager.php @@ -27,7 +27,6 @@ public function send($notifiables, $notification) * * @param \Illuminate\Support\Collection|array|mixed $notifiables * @param mixed $notification - * @param array|null $channels * @return void */ public function sendNow($notifiables, $notification, array $channels = null) diff --git a/tests/Feature/MessageEventListenerTest.php b/tests/Feature/MessageEventListenerTest.php index 453e588..721ed6a 100644 --- a/tests/Feature/MessageEventListenerTest.php +++ b/tests/Feature/MessageEventListenerTest.php @@ -1,11 +1,12 @@