1
0
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:
Jordi Boggiano
2016-05-27 13:57:55 +01:00
parent 119807c80e
commit 87ea7b4596

View File

@@ -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;