1212
1313class WebPushChannel
1414{
15- /**
16- * @return void
17- */
1815 public function __construct (protected WebPush $ webPush , protected ReportHandlerInterface $ reportHandler )
1916 {
2017 //
@@ -25,20 +22,20 @@ public function __construct(protected WebPush $webPush, protected ReportHandlerI
2522 */
2623 public function send (mixed $ notifiable , Notification $ notification ): void
2724 {
28- /** @var \Illuminate\Database\Eloquent\ Collection<array-key, PushSubscription> $subscriptions */
25+ /** @var Collection<array-key, PushSubscription> $subscriptions */
2926 $ subscriptions = $ notifiable ->routeNotificationFor ('WebPush ' , $ notification );
3027
3128 if ($ subscriptions ->isEmpty ()) {
3229 return ;
3330 }
3431
35- /** @var \NotificationChannels\WebPush\ WebPushMessageInterface $message */
32+ /** @var WebPushMessageInterface $message */
3633 // @phpstan-ignore-next-line
3734 $ message = $ notification ->toWebPush ($ notifiable , $ notification );
3835 $ payload = json_encode ($ message ->toArray ());
3936 $ options = $ message ->getOptions ();
4037
41- /** @var \NotificationChannels\WebPush\ PushSubscription $subscription */
38+ /** @var PushSubscription $subscription */
4239 foreach ($ subscriptions as $ subscription ) {
4340 $ this ->webPush ->queueNotification (new Subscription (
4441 $ subscription ->endpoint ,
@@ -56,12 +53,12 @@ public function send(mixed $notifiable, Notification $notification): void
5653 /**
5754 * Handle the reports.
5855 *
59- * @param \Illuminate\Database\Eloquent\ Collection<array-key, PushSubscription> $subscriptions
56+ * @param Collection<array-key, PushSubscription> $subscriptions
6057 */
6158 protected function handleReports (Generator $ reports , Collection $ subscriptions , WebPushMessageInterface $ message ): void
6259 {
6360 foreach ($ reports as $ report ) {
64- /** @var \Minishlink\WebPush\ MessageSentReport $report */
61+ /** @var MessageSentReport $report */
6562 $ subscription = $ this ->findSubscription ($ subscriptions , $ report );
6663
6764 if (filled ($ subscription )) {
@@ -71,7 +68,7 @@ protected function handleReports(Generator $reports, Collection $subscriptions,
7168 }
7269
7370 /**
74- * @param \Illuminate\Database\Eloquent\ Collection<array-key, PushSubscription> $subscriptions
71+ * @param Collection<array-key, PushSubscription> $subscriptions
7572 */
7673 protected function findSubscription (Collection $ subscriptions , MessageSentReport $ report ): ?PushSubscription
7774 {
0 commit comments