File tree 3 files changed +9
-9
lines changed
3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file.
3
3
4
4
## [ unreleased]
5
5
6
+ * Drop support for Composer 1.x by @GromNaN in [ #2784 ] ( https://github.com/mongodb/laravel-mongodb/pull/2784 )
7
+
8
+ ## [ 4.2.0] - 2024-03-14
9
+
6
10
* Add support for Laravel 11 by @GromNaN in [ #2735 ] ( https://github.com/mongodb/laravel-mongodb/pull/2735 )
7
11
* Implement Model::createOrFirst() using findOneAndUpdate operation by @GromNaN in [ #2742 ] ( https://github.com/mongodb/laravel-mongodb/pull/2742 )
8
12
Original file line number Diff line number Diff line change 24
24
"require" : {
25
25
"php" : " ^8.1" ,
26
26
"ext-mongodb" : " ^1.15" ,
27
+ "composer-runtime-api" : " ^2.0.0" ,
27
28
"illuminate/support" : " ^10.0|^11" ,
28
29
"illuminate/container" : " ^10.0|^11" ,
29
30
"illuminate/database" : " ^10.30|^11" ,
Original file line number Diff line number Diff line change 16
16
use MongoDB \Laravel \Concerns \ManagesTransactions ;
17
17
use Throwable ;
18
18
19
- use function class_exists ;
20
19
use function filter_var ;
21
20
use function implode ;
22
21
use function is_array ;
@@ -324,14 +323,10 @@ private static function getVersion(): string
324
323
325
324
private static function lookupVersion (): string
326
325
{
327
- if (class_exists (InstalledVersions::class)) {
328
- try {
329
- return self ::$ version = InstalledVersions::getPrettyVersion ('mongodb/laravel-mongodb ' );
330
- } catch (Throwable ) {
331
- return self ::$ version = 'error ' ;
332
- }
326
+ try {
327
+ return self ::$ version = InstalledVersions::getPrettyVersion ('mongodb/laravel-mongodb ' );
328
+ } catch (Throwable ) {
329
+ return self ::$ version = 'error ' ;
333
330
}
334
-
335
- return self ::$ version = 'unknown ' ;
336
331
}
337
332
}
You can’t perform that action at this time.
0 commit comments