summaryrefslogtreecommitdiffstats
path: root/php-mongodb-rpm.patch
diff options
context:
space:
mode:
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@';
}