mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-06 13:16:39 +02:00
Fix AmqpHandler class check
This commit is contained in:
@@ -40,7 +40,7 @@ class AmqpHandler extends AbstractProcessingHandler
|
||||
{
|
||||
if ($exchange instanceof AMQPChannel) {
|
||||
$this->exchangeName = $exchangeName;
|
||||
} else {
|
||||
} elseif (!$exchange instanceof AMQPChannel) {
|
||||
throw new \InvalidArgumentException('PhpAmqpLib\Channel\AMQPChannel or AMQPExchange instance required');
|
||||
}
|
||||
$this->exchange = $exchange;
|
||||
|
Reference in New Issue
Block a user