diff --git a/src/Channels/MailgunTemplatesChannel.php b/src/Channels/MailgunTemplatesChannel.php index 9fd6c71..92c8bb2 100644 --- a/src/Channels/MailgunTemplatesChannel.php +++ b/src/Channels/MailgunTemplatesChannel.php @@ -63,6 +63,7 @@ public function send( ) ); + /** @noinspection PhpMethodParametersCountMismatchInspection */ $message = $notification->toMailgun($notifiable); assert( $message instanceof MailgunTemplatedMessage, diff --git a/src/MailgunTemplatesChannelServiceProvider.php b/src/MailgunTemplatesChannelServiceProvider.php index f59596a..8f39036 100644 --- a/src/MailgunTemplatesChannelServiceProvider.php +++ b/src/MailgunTemplatesChannelServiceProvider.php @@ -13,14 +13,13 @@ use Illuminate\Container\Container; use Illuminate\Contracts\Config\Repository as ConfigRepository; +use Illuminate\Contracts\Container\BindingResolutionException; use Illuminate\Notifications\ChannelManager; use Illuminate\Support\Facades\Notification; use Illuminate\Support\ServiceProvider; use LogicException; use Mailgun\Mailgun; use Matchory\MailgunTemplatedMessages\Channels\MailgunTemplatesChannel; -use Psr\Container\ContainerExceptionInterface; -use Psr\Container\NotFoundExceptionInterface; use function assert; use function is_array; @@ -38,9 +37,8 @@ class MailgunTemplatesChannelServiceProvider extends ServiceProvider /** * Register the application services. * - * @throws ContainerExceptionInterface + * @throws BindingResolutionException * @throws LogicException - * @throws NotFoundExceptionInterface */ public function register(): void { @@ -50,8 +48,7 @@ public function register(): void } /** - * @throws ContainerExceptionInterface - * @throws NotFoundExceptionInterface + * @throws BindingResolutionException */ private function extendNotificationChannels(): void {