From 266f4c8604c19634d14f8b84dc9e12b3d647ec25 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 28 Mar 2024 07:35:43 +0100 Subject: update to 1.18.0 raise dependency on mongodb extension version 1.18 --- php-mongodb-rpm.patch | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'php-mongodb-rpm.patch') diff --git a/php-mongodb-rpm.patch b/php-mongodb-rpm.patch index ad9d349..b706e73 100644 --- a/php-mongodb-rpm.patch +++ b/php-mongodb-rpm.patch @@ -1,22 +1,22 @@ diff -up ./src/Client.php.rpm ./src/Client.php ---- ./src/Client.php.rpm 2021-07-13 22:03:24.000000000 +0200 -+++ ./src/Client.php 2021-07-14 16:11:34.362284353 +0200 -@@ -18,7 +18,6 @@ +--- ./src/Client.php.rpm 2024-03-28 07:31:35.800951756 +0100 ++++ ./src/Client.php 2024-03-28 07:33:06.605444491 +0100 +@@ -17,7 +17,6 @@ + namespace MongoDB; +-use Composer\InstalledVersions; use Iterator; --use Jean85\PrettyVersions; use MongoDB\Driver\ClientEncryption; use MongoDB\Driver\Exception\InvalidArgumentException as DriverInvalidArgumentException; - use MongoDB\Driver\Exception\RuntimeException as DriverRuntimeException; -@@ -388,11 +387,7 @@ class Client +@@ -395,11 +394,7 @@ class Client private static function getVersion(): string { if (self::$version === null) { - try { -- self::$version = PrettyVersions::getVersion('mongodb/mongodb')->getPrettyVersion(); +- self::$version = InstalledVersions::getPrettyVersion('mongodb/mongodb') ?? 'unknown'; - } catch (Throwable $t) { -- return 'unknown'; +- self::$version = 'error'; - } + self::$version = '@VERSION@'; } -- cgit