Skip to content

Commit f9defdb

Browse files
committed
Updting lowest dep
Updating the lowest dependecy until deprication warnings are fix.
1 parent d98935b commit f9defdb

10 files changed

+23
-23
lines changed

Diff for: composer.json

+12-12
Original file line numberDiff line numberDiff line change
@@ -18,30 +18,30 @@
1818

1919
"queue-interop/amqp-interop": "^0.8.2",
2020
"queue-interop/queue-interop": "^0.8.1",
21-
"bunny/bunny": "^0.4|^0.5",
22-
"php-amqplib/php-amqplib": "^3.0",
23-
"doctrine/dbal": "^2.12|^3.1",
24-
"ramsey/uuid": "^3.5|^4",
21+
"bunny/bunny": "^0.5.5",
22+
"php-amqplib/php-amqplib": "^3.1",
23+
"doctrine/dbal": "^3.2",
24+
"ramsey/uuid": "^4.3",
2525
"psr/log": "^1.1 || ^2.0 || ^3.0",
2626
"psr/container": "^1.1 || ^2.0",
2727
"makasim/temp-file": "^0.2",
28-
"google/cloud-pubsub": "^1.4.3",
28+
"google/cloud-pubsub": "^1.46",
2929
"doctrine/orm": "^2.12",
3030
"doctrine/persistence": "^2.0|^3.0",
31-
"mongodb/mongodb": "^1.2",
31+
"mongodb/mongodb": "^1.17",
3232
"pda/pheanstalk": "^3.1",
3333
"aws/aws-sdk-php": "^3.290",
34-
"stomp-php/stomp-php": "^4.5|^5",
34+
"stomp-php/stomp-php": "^5.1",
3535
"php-http/guzzle7-adapter": "^0.1.1",
3636
"php-http/client-common": "^2.2.1",
3737
"andrewmy/rabbitmq-management-api": "^2.1.2",
38-
"predis/predis": "^1.1",
38+
"predis/predis": "^2.1",
3939
"thruway/client": "^0.5.5",
40-
"thruway/pawl-transport": "^0.5.1",
40+
"thruway/pawl-transport": "^0.5.2",
4141
"influxdb/influxdb-php": "^1.14",
4242
"datadog/php-datadogstatsd": "^1.3",
4343
"guzzlehttp/guzzle": "^7.0.1",
44-
"guzzlehttp/psr7": "^1.0",
44+
"guzzlehttp/psr7": "^1.9.1",
4545
"php-http/discovery": "^1.13",
4646
"voryx/thruway-common": "^1.0.1",
4747
"react/dns": "^1.4",
@@ -50,7 +50,7 @@
5050
},
5151
"require-dev": {
5252
"ext-pcntl": "*",
53-
"phpunit/phpunit": "^9.5",
53+
"phpunit/phpunit": "^9.5.28",
5454
"phpstan/phpstan": "^1.0",
5555
"queue-interop/queue-spec": "^0.6.2",
5656
"symfony/browser-kit": "^6.2|^7.0",
@@ -67,7 +67,7 @@
6767
"symfony/yaml": "^6.2|^7.0",
6868
"empi89/php-amqp-stubs": "*@dev",
6969
"doctrine/doctrine-bundle": "^2.3.2",
70-
"doctrine/mongodb-odm-bundle": "^3.5|^4.3|^5.0",
70+
"doctrine/mongodb-odm-bundle": "^4.7|^5.0",
7171
"alcaeus/mongo-php-adapter": "^1.0",
7272
"kwn/php-rdkafka-stubs": "^2.0.3",
7373
"friendsofphp/php-cs-fixer": "^3.4",

Diff for: pkg/dbal/DbalConsumerHelperTrait.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ protected function fetchMessage(array $queues, int $redeliveryDelay): ?DbalMessa
5353

5454
while (microtime(true) < $endAt) {
5555
try {
56-
$result = $select->execute()->fetch();
56+
$result = $select->execute()->fetchAssociative();
5757
if (empty($result)) {
5858
return null;
5959
}
@@ -69,7 +69,7 @@ protected function fetchMessage(array $queues, int $redeliveryDelay): ?DbalMessa
6969
->setParameter('deliveryId', $deliveryId, DbalType::GUID)
7070
->setMaxResults(1)
7171
->execute()
72-
->fetch();
72+
->fetchAssociative();
7373

7474
// the message has been removed by a 3rd party, such as truncate operation.
7575
if (false === $deliveredMessage) {

Diff for: 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),

Diff for: 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), previous: $e);
9898
}
9999

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

Diff for: 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), previous: $e);
7171
}
7272

7373
if ($topic) {

Diff for: 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')), previous: $e);
6767
}
6868

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

Diff for: 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), previous: $e);
5959
}
6060

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

Diff for: 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), previous: $e);
8383
}
8484

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

Diff for: 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), previous: $e);
6969
}
7070

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

Diff for: 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+
(int) ($this->config['phpredis_retry_interval'] ?? 0),
115+
(float) $this->config['read_write_timeout'] ?? 0
116116
);
117117

118118
if (false == $result) {

0 commit comments

Comments
 (0)