Skip to content

Commit 645200f

Browse files
committed
fix test
1 parent 77b978c commit 645200f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pkg/enqueue/Client/DriverFactory.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,10 @@ public function create(PsrConnectionFactory $factory, string $dsn, array $config
5757

5858
$managementClient = StompManagementClient::create(
5959
ltrim($dsn->getPath(), '/'),
60-
$dsn->getHost(),
61-
isset($config['management_plugin_port']) ? $config['management_plugin_port'] : 15672,
62-
$dsn->getUser(),
63-
$dsn->getPassword()
60+
$dsn->getHost() ?: 'localhost',
61+
$config['management_plugin_port'] ?? 15672,
62+
(string) $dsn->getUser(),
63+
(string) $dsn->getPassword()
6464
);
6565

6666
return new RabbitMqStompDriver($factory->createContext(), $this->config, $this->queueMetaRegistry, $managementClient);

0 commit comments

Comments
 (0)