Skip to content

Commit e717251

Browse files
committed
fix: Fixed language level deprecations
1 parent a9b3a33 commit e717251

9 files changed

+10
-10
lines changed

pkg/enqueue/Client/DriverFactory.php

+1-1
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),

pkg/enqueue/Symfony/Client/ConsumeCommand.php

+1-1
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), 0, $e);
9898
}
9999

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

pkg/enqueue/Symfony/Client/ProduceCommand.php

+1-1
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), 0, $e);
7171
}
7272

7373
if ($topic) {

pkg/enqueue/Symfony/Client/RoutesCommand.php

+1-1
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')), 0, $e);
6767
}
6868

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

pkg/enqueue/Symfony/Client/SetupBrokerCommand.php

+1-1
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), 0, $e);
5959
}
6060

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

pkg/enqueue/Symfony/Consumption/ConfigurableConsumeCommand.php

+1-1
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), 0, $e);
8383
}
8484

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

pkg/enqueue/Symfony/Consumption/ConsumeCommand.php

+1-1
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), 0, $e);
6969
}
7070

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

pkg/job-queue/Test/DbalPersistedConnection.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ private function wrapTransactionNestingLevel($method)
136136
$this->setTransactionNestingLevel($this->getPersistedTransactionNestingLevel());
137137

138138
try {
139-
call_user_func(['parent', $method]);
139+
call_user_func([parent::class, $method]);
140140
} catch (\Exception $e) {
141141
}
142142

pkg/redis/PhpRedis.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ public function connect(): void
111111
$this->config['port'],
112112
$this->config['timeout'],
113113
$this->config['persistent'] ? ($this->config['phpredis_persistent_id'] ?? null) : null,
114-
$this->config['phpredis_retry_interval'] ?? null,
115-
$this->config['read_write_timeout']
114+
$this->config['phpredis_retry_interval'] ?? 0,
115+
$this->config['read_write_timeout'] ?? 0
116116
);
117117

118118
if (false == $result) {

0 commit comments

Comments
 (0)