1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-06 13:16:39 +02:00
This commit is contained in:
Jordi Boggiano
2016-05-27 14:18:29 +01:00
parent bd584e89bc
commit a5a333d8cd

View File

@@ -40,7 +40,7 @@ class AmqpHandler extends AbstractProcessingHandler
{
if ($exchange instanceof AMQPChannel) {
$this->exchangeName = $exchangeName;
} elseif (!$exchange instanceof AMQPChannel) {
} elseif (!$exchange instanceof AMQPExchange) {
throw new \InvalidArgumentException('PhpAmqpLib\Channel\AMQPChannel or AMQPExchange instance required');
}
$this->exchange = $exchange;