From 4ef697d912f71bc584f6a0bfe27d26d71a0e38c0 Mon Sep 17 00:00:00 2001 From: Mponos George Date: Mon, 22 Jun 2020 21:31:17 +0300 Subject: [PATCH] [Sendgrid] Allow int or string on sendgrid handler --- src/Monolog/Handler/SendGridHandler.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Monolog/Handler/SendGridHandler.php b/src/Monolog/Handler/SendGridHandler.php index c154a5d1..e774d309 100644 --- a/src/Monolog/Handler/SendGridHandler.php +++ b/src/Monolog/Handler/SendGridHandler.php @@ -56,10 +56,10 @@ class SendGridHandler extends MailHandler * @param string $from The sender of the email * @param string|array $to The recipients of the email * @param string $subject The subject of the mail - * @param int $level The minimum logging level at which this handler will be triggered + * @param int|string $level The minimum logging level at which this handler will be triggered * @param bool $bubble Whether the messages that are handled can bubble up the stack or not */ - public function __construct(string $apiUser, string $apiKey, string $from, $to, string $subject, int $level = Logger::ERROR, bool $bubble = true) + public function __construct(string $apiUser, string $apiKey, string $from, $to, string $subject, $level = Logger::ERROR, bool $bubble = true) { parent::__construct($level, $bubble); $this->apiUser = $apiUser;