blob: ad9d349ee3e07a0bb277cb2223613574c0e91147 (
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 2021-07-13 22:03:24.000000000 +0200
+++ ./src/Client.php 2021-07-14 16:11:34.362284353 +0200
@@ -18,7 +18,6 @@
namespace MongoDB;
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
private static function getVersion(): string
{
if (self::$version === null) {
- try {
- self::$version = PrettyVersions::getVersion('mongodb/mongodb')->getPrettyVersion();
- } catch (Throwable $t) {
- return 'unknown';
- }
+ self::$version = '@VERSION@';
}
return self::$version;
|