File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
lib/internal/Magento/Framework/Amqp Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 55 */
66namespace Magento \Framework \Amqp ;
77
8+ use Magento \Framework \Amqp \Connection \Factory as ConnectionFactory ;
89use Magento \Framework \Amqp \Connection \FactoryOptions ;
910use Magento \Framework \App \DeploymentConfig ;
1011use Magento \Framework \App \ObjectManager ;
11- use PhpAmqpLib \Connection \AbstractConnection ;
1212use PhpAmqpLib \Channel \AMQPChannel ;
13- use Magento \ Framework \ Amqp \ Connection \Factory as ConnectionFactory ;
13+ use PhpAmqpLib \ Connection \AbstractConnection ;
1414
1515/**
1616 * Reads the Amqp config in the deployed environment configuration
@@ -140,7 +140,7 @@ public function getValue($key)
140140 */
141141 private function createConnection (): AbstractConnection
142142 {
143- $ sslEnabled = $ this -> getValue ( self :: SSL ) && trim ($ this ->getValue (self ::SSL )) === 'true ' ;
143+ $ sslEnabled = trim ($ this ->getValue (self ::SSL ) ?? '' ) === 'true ' ;
144144 $ options = new FactoryOptions ();
145145 $ options ->setHost ($ this ->getValue (self ::HOST ));
146146 $ options ->setPort ($ this ->getValue (self ::PORT ));
You can’t perform that action at this time.
0 commit comments