Skip to content

Commit

Permalink
Merge pull request #55 from Vinelab/fix/logger-contract
Browse files Browse the repository at this point in the history
Remove type hinting for logger contract to account for Laravel >= 5.6
  • Loading branch information
adiachenko authored Sep 23, 2019
2 parents 4846589 + bbdb05d commit 259fa8c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/Exceptions/Handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class Handler
private $exceptionHandler;

/**
* @var Log
* @var \Psr\Log\LoggerInterface|\Illuminate\Contracts\Logging\Log
*/
private $logger;

Expand All @@ -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;
Expand Down
7 changes: 3 additions & 4 deletions src/MessageLifecycleManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 259fa8c

Please sign in to comment.