Skip to content

Commit 0afe43b

Browse files
committed
phpstan ignores a couple lines
1 parent 253ee67 commit 0afe43b

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/Listeners/CheckRateLimiter.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ class CheckRateLimiter
1111
public function handle(NotificationSending $event): bool
1212
{
1313
if ($event->notification instanceof ThrottlesChannels) {
14+
// @phpstan-ignore-next-line
1415
$channels = $event->notification->via($event->notifiable);
1516
$throttleConfig = $event->notification->throttleChannels($event->notifiable, $channels);
1617
$channelConfig = $throttleConfig[$event->channel];

src/Listeners/HitRateLimiter.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ class HitRateLimiter
1111
public function handle(NotificationSent $event)
1212
{
1313
if ($event->notification instanceof ThrottlesChannels) {
14+
// @phpstan-ignore-next-line
1415
$channels = $event->notification->via($event->notifiable);
1516
$throttleConfig = $event->notification->throttleChannels($event->notifiable, $channels);
1617
$channelConfig = $throttleConfig[$event->channel];

0 commit comments

Comments
 (0)