summaryrefslogtreecommitdiffstats
path: root/php-mongodb-rpm.patch
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2024-03-28 07:35:43 +0100
committerRemi Collet <remi@php.net>2024-03-28 07:35:43 +0100
commit266f4c8604c19634d14f8b84dc9e12b3d647ec25 (patch)
treee649c80cbd3a9b452cac93d39b8409590b772f3e /php-mongodb-rpm.patch
parent046f9a0d890c9264dd4cebe71b69163664647735 (diff)
update to 1.18.0
raise dependency on mongodb extension version 1.18
Diffstat (limited to 'php-mongodb-rpm.patch')
-rw-r--r--php-mongodb-rpm.patch16
1 files changed, 8 insertions, 8 deletions
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@';
}