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.patch12
1 files changed, 6 insertions, 6 deletions
diff --git a/php-mongodb-rpm.patch b/php-mongodb-rpm.patch
index b706e73..c200ba9 100644
--- a/php-mongodb-rpm.patch
+++ b/php-mongodb-rpm.patch
@@ -1,21 +1,21 @@
diff -up ./src/Client.php.rpm ./src/Client.php
---- ./src/Client.php.rpm 2024-03-28 07:31:35.800951756 +0100
-+++ ./src/Client.php 2024-03-28 07:33:06.605444491 +0100
+--- ./src/Client.php.rpm 2025-02-28 15:03:47.099826893 +0100
++++ ./src/Client.php 2025-02-28 15:04:54.310620093 +0100
@@ -17,7 +17,6 @@
namespace MongoDB;
-use Composer\InstalledVersions;
use Iterator;
- use MongoDB\Driver\ClientEncryption;
- use MongoDB\Driver\Exception\InvalidArgumentException as DriverInvalidArgumentException;
-@@ -395,11 +394,7 @@ class Client
+ use MongoDB\BSON\Document;
+ use MongoDB\BSON\PackedArray;
+@@ -453,11 +452,7 @@ class Client
private static function getVersion(): string
{
if (self::$version === null) {
- try {
- self::$version = InstalledVersions::getPrettyVersion('mongodb/mongodb') ?? 'unknown';
-- } catch (Throwable $t) {
+- } catch (Throwable) {
- self::$version = 'error';
- }
+ self::$version = '@VERSION@';