Skip to content

Commit d02a46c

Browse files
committed
feat: initial laravel 9 compatibility
1 parent 6cdd309 commit d02a46c

File tree

5 files changed

+23
-26
lines changed

5 files changed

+23
-26
lines changed

.github/workflows/build-ci.yml

+7-16
Original file line numberDiff line numberDiff line change
@@ -35,19 +35,14 @@ jobs:
3535
strategy:
3636
matrix:
3737
include:
38-
- { os: ubuntu-latest, php: 7.2, mongodb: 3.6, experimental: true }
39-
- { os: ubuntu-latest, php: 7.2, mongodb: '4.0', experimental: true }
40-
- { os: ubuntu-latest, php: 7.2, mongodb: 4.2, experimental: true }
41-
- { os: ubuntu-latest, php: 7.2, mongodb: 4.4, experimental: true }
42-
- { os: ubuntu-latest, php: 7.3, mongodb: 3.6, experimental: false }
43-
- { os: ubuntu-latest, php: 7.3, mongodb: '4.0', experimental: false }
44-
- { os: ubuntu-latest, php: 7.3, mongodb: 4.2, experimental: false }
45-
- { os: ubuntu-latest, php: 7.3, mongodb: 4.4, experimental: false }
46-
- { os: ubuntu-latest, php: 7.4, mongodb: 3.6, experimental: false }
47-
- { os: ubuntu-latest, php: 7.4, mongodb: '4.0', experimental: false }
48-
- { os: ubuntu-latest, php: 7.4, mongodb: 4.2, experimental: false }
49-
- { os: ubuntu-latest, php: 7.4, mongodb: 4.4, experimental: false }
38+
- { os: ubuntu-latest, php: 8.0, mongodb: '4.0', experimental: false }
39+
- { os: ubuntu-latest, php: 8.0, mongodb: 4.2, experimental: false }
5040
- { os: ubuntu-latest, php: 8.0, mongodb: 4.4, experimental: false }
41+
- { os: ubuntu-latest, php: 8.0, mongodb: '5.0', experimental: false }
42+
- { os: ubuntu-latest, php: 8.1, mongodb: '4.0', experimental: false }
43+
- { os: ubuntu-latest, php: 8.1, mongodb: 4.2, experimental: false }
44+
- { os: ubuntu-latest, php: 8.1, mongodb: 4.4, experimental: false }
45+
- { os: ubuntu-latest, php: 8.1, mongodb: '5.0', experimental: false }
5146
services:
5247
mongo:
5348
image: mongo:${{ matrix.mongodb }}
@@ -78,22 +73,18 @@ jobs:
7873
env:
7974
DEBUG: ${{secrets.DEBUG}}
8075
- name: Download Composer cache dependencies from cache
81-
if: (!startsWith(matrix.php, '7.2'))
8276
id: composer-cache
8377
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
8478
- name: Cache Composer dependencies
85-
if: (!startsWith(matrix.php, '7.2'))
8679
uses: actions/cache@v1
8780
with:
8881
path: ${{ steps.composer-cache.outputs.dir }}
8982
key: ${{ matrix.os }}-composer-${{ hashFiles('**/composer.json') }}
9083
restore-keys: ${{ matrix.os }}-composer-
9184
- name: Install dependencies
92-
if: (!startsWith(matrix.php, '7.2'))
9385
run: |
9486
composer install --no-interaction
9587
- name: Run tests
96-
if: (!startsWith(matrix.php, '7.2'))
9788
run: |
9889
./vendor/bin/phpunit --coverage-clover coverage.xml
9990
env:

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ All notable changes to this project will be documented in this file.
33

44
## [Unreleased]
55

6+
### Added
7+
- Compatibility with Laravel 9.x [#](https://github.com/jenssegers/laravel-mongodb/pull/) by [@divine](https://github.com/divine).
8+
69
## [3.8.4] - 2021-05-27
710

811
### Fixed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ Make sure you have the MongoDB PHP driver installed. You can find installation i
5858

5959
Laravel | Package | Maintained
6060
:---------|:---------------|:----------
61+
9.x | 3.9.x | :white_check_mark:
6162
8.x | 3.8.x | :white_check_mark:
6263
7.x | 3.7.x | :x:
6364
6.x | 3.6.x | :white_check_mark:

composer.json

+11-9
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,17 @@
1919
],
2020
"license": "MIT",
2121
"require": {
22-
"illuminate/support": "^8.0",
23-
"illuminate/container": "^8.0",
24-
"illuminate/database": "^8.0",
25-
"illuminate/events": "^8.0",
26-
"mongodb/mongodb": "^1.6"
22+
"illuminate/support": "9.x-dev",
23+
"illuminate/container": "9.x-dev",
24+
"illuminate/database": "9.x-dev",
25+
"illuminate/events": "9.x-dev",
26+
"mongodb/mongodb": "^1.11"
2727
},
2828
"require-dev": {
29-
"phpunit/phpunit": "^9.0",
30-
"orchestra/testbench": "^6.0",
29+
"phpunit/phpunit": "^9.5.8",
30+
"orchestra/testbench": "7.x-dev",
3131
"mockery/mockery": "^1.3.1",
32-
"doctrine/dbal": "^2.6"
32+
"doctrine/dbal": "^2.13.3|^3.1.4"
3333
},
3434
"autoload": {
3535
"psr-4": {
@@ -54,5 +54,7 @@
5454
"Jenssegers\\Mongodb\\MongodbQueueServiceProvider"
5555
]
5656
}
57-
}
57+
},
58+
"minimum-stability": "dev",
59+
"prefer-stable": true
5860
}

src/Query/Builder.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,7 @@ public function whereAll($column, array $values, $boolean = 'and', $not = false)
526526
/**
527527
* @inheritdoc
528528
*/
529-
public function whereBetween($column, array $values, $boolean = 'and', $not = false)
529+
public function whereBetween($column, iterable $values, $boolean = 'and', $not = false)
530530
{
531531
$type = 'between';
532532

0 commit comments

Comments
 (0)