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 5
5
*/
6
6
namespace Magento \Framework \Amqp ;
7
7
8
+ use Magento \Framework \Amqp \Connection \Factory as ConnectionFactory ;
8
9
use Magento \Framework \Amqp \Connection \FactoryOptions ;
9
10
use Magento \Framework \App \DeploymentConfig ;
10
11
use Magento \Framework \App \ObjectManager ;
11
- use PhpAmqpLib \Connection \AbstractConnection ;
12
12
use PhpAmqpLib \Channel \AMQPChannel ;
13
- use Magento \ Framework \ Amqp \ Connection \Factory as ConnectionFactory ;
13
+ use PhpAmqpLib \ Connection \AbstractConnection ;
14
14
15
15
/**
16
16
* Reads the Amqp config in the deployed environment configuration
@@ -140,7 +140,7 @@ public function getValue($key)
140
140
*/
141
141
private function createConnection (): AbstractConnection
142
142
{
143
- $ sslEnabled = $ this -> getValue ( self :: SSL ) && trim ($ this ->getValue (self ::SSL )) === 'true ' ;
143
+ $ sslEnabled = trim ($ this ->getValue (self ::SSL ) ?? '' ) === 'true ' ;
144
144
$ options = new FactoryOptions ();
145
145
$ options ->setHost ($ this ->getValue (self ::HOST ));
146
146
$ options ->setPort ($ this ->getValue (self ::PORT ));
You can’t perform that action at this time.
0 commit comments