File tree 3 files changed +9
-8
lines changed
3 files changed +9
-8
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 @@ -324,14 +324,10 @@ private static function getVersion(): string
324
324
325
325
private static function lookupVersion (): string
326
326
{
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
- }
327
+ try {
328
+ return self ::$ version = InstalledVersions::getPrettyVersion ('mongodb/laravel-mongodb ' );
329
+ } catch (Throwable ) {
330
+ return self ::$ version = 'error ' ;
333
331
}
334
-
335
- return self ::$ version = 'unknown ' ;
336
332
}
337
333
}
You can’t perform that action at this time.
0 commit comments