blob: b706e73481b8f22ba2fa461b310f754c776b9aff (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
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
@@ -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
private static function getVersion(): string
{
if (self::$version === null) {
- try {
- self::$version = InstalledVersions::getPrettyVersion('mongodb/mongodb') ?? 'unknown';
- } catch (Throwable $t) {
- self::$version = 'error';
- }
+ self::$version = '@VERSION@';
}
return self::$version;
|