Skip to content

Commit 01da495

Browse files
committed
Updting lowest dep
Updating the lowest dependecy until deprication warnings are fix.
1 parent 2524b3f commit 01da495

7 files changed

+7
-7
lines changed

Client/DriverFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ private function findDriverInfo(Dsn $dsn, array $factories): ?array
7676
private function createRabbitMqStompDriver(ConnectionFactory $factory, Dsn $dsn, Config $config, RouteCollection $collection): RabbitMqStompDriver
7777
{
7878
$defaultManagementHost = $dsn->getHost() ?: $config->getTransportOption('host', 'localhost');
79-
$managementVast = ltrim($dsn->getPath(), '/') ?: $config->getTransportOption('vhost', '/');
79+
$managementVast = ltrim($dsn->getPath() ?? '', '/') ?: $config->getTransportOption('vhost', '/');
8080

8181
$managementClient = StompManagementClient::create(
8282
urldecode($managementVast),

Symfony/Client/ConsumeCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
9494
try {
9595
$consumer = $this->getQueueConsumer($client);
9696
} catch (NotFoundExceptionInterface $e) {
97-
throw new \LogicException(sprintf('Client "%s" is not supported.', $client), null, $e);
97+
throw new \LogicException(sprintf('Client "%s" is not supported.', $client), previous: $e);
9898
}
9999

100100
$driver = $this->getDriver($client);

Symfony/Client/ProduceCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
6767
try {
6868
$producer = $this->getProducer($client);
6969
} catch (NotFoundExceptionInterface $e) {
70-
throw new \LogicException(sprintf('Client "%s" is not supported.', $client), null, $e);
70+
throw new \LogicException(sprintf('Client "%s" is not supported.', $client), previous: $e);
7171
}
7272

7373
if ($topic) {

Symfony/Client/RoutesCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
6363
try {
6464
$this->driver = $this->getDriver($input->getOption('client'));
6565
} catch (NotFoundExceptionInterface $e) {
66-
throw new \LogicException(sprintf('Client "%s" is not supported.', $input->getOption('client')), null, $e);
66+
throw new \LogicException(sprintf('Client "%s" is not supported.', $input->getOption('client')), previous: $e);
6767
}
6868

6969
$routes = $this->driver->getRouteCollection()->all();

Symfony/Client/SetupBrokerCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
5555
try {
5656
$this->getDriver($client)->setupBroker(new ConsoleLogger($output));
5757
} catch (NotFoundExceptionInterface $e) {
58-
throw new \LogicException(sprintf('Client "%s" is not supported.', $client), null, $e);
58+
throw new \LogicException(sprintf('Client "%s" is not supported.', $client), previous: $e);
5959
}
6060

6161
$output->writeln('Broker set up');

Symfony/Consumption/ConfigurableConsumeCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
7979
try {
8080
$consumer = $this->getQueueConsumer($transport);
8181
} catch (NotFoundExceptionInterface $e) {
82-
throw new \LogicException(sprintf('Transport "%s" is not supported.', $transport), null, $e);
82+
throw new \LogicException(sprintf('Transport "%s" is not supported.', $transport), previous: $e);
8383
}
8484

8585
$this->setQueueConsumerOptions($consumer, $input);

Symfony/Consumption/ConsumeCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
6565
// QueueConsumer must be pre configured outside of the command!
6666
$consumer = $this->getQueueConsumer($transport);
6767
} catch (NotFoundExceptionInterface $e) {
68-
throw new \LogicException(sprintf('Transport "%s" is not supported.', $transport), null, $e);
68+
throw new \LogicException(sprintf('Transport "%s" is not supported.', $transport), previous: $e);
6969
}
7070

7171
$this->setQueueConsumerOptions($consumer, $input);

0 commit comments

Comments
 (0)