Skip to content

Commit 7b36702

Browse files
Use !== rather than != (scrutinizer output)
1 parent 001f715 commit 7b36702

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

RabbitMq/Producer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function publish($msgBody, $routingKey = null, $additionalProperties = ar
6161
$msg->set('application_headers', $headersTable);
6262
}
6363

64-
$real_routingKey = $routingKey != null ? $routingKey : $this->defaultRoutingKey;
64+
$real_routingKey = $routingKey !== null ? $routingKey : $this->defaultRoutingKey;
6565
$this->getChannel()->basic_publish($msg, $this->exchangeOptions['name'], (string)$real_routingKey);
6666
$this->logger->debug('AMQP message published', array(
6767
'amqp' => array(

0 commit comments

Comments
 (0)