From bbdb05dd12ac546768ff0bd7b2d9b4d971953085 Mon Sep 17 00:00:00 2001 From: Alexander Diachenko Date: Mon, 23 Sep 2019 10:49:48 +0300 Subject: [PATCH] Remove type hinting for logger contract to account for Laravel >= 5.6 --- src/Exceptions/Handler.php | 6 +++--- src/MessageLifecycleManager.php | 7 +++---- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/Exceptions/Handler.php b/src/Exceptions/Handler.php index 5071ea4..1f3cc21 100644 --- a/src/Exceptions/Handler.php +++ b/src/Exceptions/Handler.php @@ -24,7 +24,7 @@ class Handler private $exceptionHandler; /** - * @var Log + * @var \Psr\Log\LoggerInterface|\Illuminate\Contracts\Logging\Log */ private $logger; @@ -36,10 +36,10 @@ class Handler /** * Handler constructor. * @param ExceptionHandler $handler - * @param Log $logger + * @param \Psr\Log\LoggerInterface|\Illuminate\Contracts\Logging\Log $logger * @param Repository $config */ - public function __construct(ExceptionHandler $handler, Log $logger, Repository $config) + public function __construct(ExceptionHandler $handler, $logger, Repository $config) { $this->exceptionHandler = $handler; $this->logger = $logger; diff --git a/src/MessageLifecycleManager.php b/src/MessageLifecycleManager.php index a394e20..1053720 100644 --- a/src/MessageLifecycleManager.php +++ b/src/MessageLifecycleManager.php @@ -5,13 +5,12 @@ use Closure; use Exception; use Illuminate\Contracts\Config\Repository; -use Illuminate\Contracts\Logging\Log; use PhpAmqpLib\Message\AMQPMessage; class MessageLifecycleManager { /** - * @var Log + * @var \Psr\Log\LoggerInterface|\Illuminate\Contracts\Logging\Log */ protected $logger; @@ -42,10 +41,10 @@ class MessageLifecycleManager /** * MessageLifecycleManager constructor. - * @param Log $logger + * @param \Psr\Log\LoggerInterface|\Illuminate\Contracts\Logging\Log $logger * @param Repository $config */ - public function __construct(Log $logger, Repository $config) + public function __construct($logger, Repository $config) { $this->logger = $logger; $this->config = $config;