Skip to content

Commit a362df4

Browse files
authored
Merge pull request #2108 from jenssegers/l8
[3.8] Laravel 8 support
2 parents 8211268 + f1cce13 commit a362df4

File tree

7 files changed

+25
-22
lines changed

7 files changed

+25
-22
lines changed

.github/workflows/build-ci.yml

+4
Original file line numberDiff line numberDiff line change
@@ -56,18 +56,22 @@ jobs:
5656
env:
5757
DEBUG: ${{secrets.DEBUG}}
5858
- name: Download Composer cache dependencies from cache
59+
if: (!startsWith(matrix.php, '7.2'))
5960
id: composer-cache
6061
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
6162
- name: Cache Composer dependencies
63+
if: (!startsWith(matrix.php, '7.2'))
6264
uses: actions/cache@v1
6365
with:
6466
path: ${{ steps.composer-cache.outputs.dir }}
6567
key: ${{ matrix.os }}-composer-${{ hashFiles('**/composer.json') }}
6668
restore-keys: ${{ matrix.os }}-composer-
6769
- name: Install dependencies
70+
if: (!startsWith(matrix.php, '7.2'))
6871
run: |
6972
composer install --no-interaction
7073
- name: Run tests
74+
if: (!startsWith(matrix.php, '7.2'))
7175
run: |
7276
./vendor/bin/phpunit --coverage-clover coverage.xml
7377
env:

CHANGELOG.md

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

44
## [Unreleased]
55

6+
### Added
7+
- Laravel 8 support by [@divine](https://github.com/divine).
8+
9+
### Changed
10+
- Updated versions of all dependencies by [@divine](https://github.com/divine).
11+
612
## [3.7.0] - 2020-09-18
713

814
### Added

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ Make sure you have the MongoDB PHP driver installed. You can find installation i
6868
5.8.x | 3.5.x
6969
6.x | 3.6.x
7070
7.x | 3.7.x
71+
8.x | 3.8.x
7172

7273
Install the package via Composer:
7374

composer.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@
1919
],
2020
"license": "MIT",
2121
"require": {
22-
"illuminate/support": "^7.0",
23-
"illuminate/container": "^7.0",
24-
"illuminate/database": "^7.0",
25-
"illuminate/events": "^7.0",
22+
"illuminate/support": "^8.0",
23+
"illuminate/container": "^8.0",
24+
"illuminate/database": "^8.0",
25+
"illuminate/events": "^8.0",
2626
"mongodb/mongodb": "^1.6"
2727
},
2828
"require-dev": {
29-
"phpunit/phpunit": "^8.4|^9.0",
30-
"orchestra/testbench": "^5.0",
29+
"phpunit/phpunit": "^9.0",
30+
"orchestra/testbench": "^6.0",
3131
"mockery/mockery": "^1.3.1",
3232
"doctrine/dbal": "^2.6"
3333
},

phpunit.xml.dist

+6-14
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit backupGlobals="false"
3-
backupStaticAttributes="false"
4-
bootstrap="vendor/autoload.php"
5-
colors="true"
6-
convertErrorsToExceptions="true"
7-
convertNoticesToExceptions="true"
8-
convertWarningsToExceptions="true"
9-
processIsolation="false"
10-
stopOnFailure="false">
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false" backupStaticAttributes="false" bootstrap="vendor/autoload.php" colors="true" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" processIsolation="false" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
3+
<coverage processUncoveredFiles="true">
4+
<include>
5+
<directory suffix=".php">./src</directory>
6+
</include>
7+
</coverage>
118
<testsuites>
129
<testsuite name="all">
1310
<directory>tests/</directory>
@@ -37,11 +34,6 @@
3734
<file>tests/ValidationTest.php</file>
3835
</testsuite>
3936
</testsuites>
40-
<filter>
41-
<whitelist processUncoveredFilesFromWhitelist="true">
42-
<directory suffix=".php">./src</directory>
43-
</whitelist>
44-
</filter>
4537
<php>
4638
<env name="MONGO_HOST" value="mongodb"/>
4739
<env name="MONGO_DATABASE" value="unittest"/>

src/Jenssegers/Mongodb/Relations/MorphTo.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ protected function getResultsByType($type)
3131

3232
$query = $instance->newQuery();
3333

34-
return $query->whereIn($key, $this->gatherKeysByType($type))->get();
34+
return $query->whereIn($key, $this->gatherKeysByType($type, $instance->getKeyType()))->get();
3535
}
3636

3737
/**

tests/QueueTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function testQueueJobLifeCycle(): void
3737
'job' => 'test',
3838
'maxTries' => null,
3939
'maxExceptions' => null,
40-
'delay' => null,
40+
'backoff' => null,
4141
'timeout' => null,
4242
'data' => ['action' => 'QueueJobLifeCycle'],
4343
]), $job->getRawBody());

0 commit comments

Comments
 (0)