Skip to content

Commit 22f40a0

Browse files
committed
Update default configuration
1 parent 2eb8cf2 commit 22f40a0

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

Diff for: docker-compose.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ services:
1818
ports:
1919
- "27017:27017"
2020
healthcheck:
21-
test: mongosh mongodb:27017 --quiet --eval 'db.runCommand("ping").ok'
21+
test: mongosh --quiet --eval 'db.runCommand("ping").ok'
2222
interval: 10s
2323
timeout: 10s
2424
retries: 5
25+
s

Diff for: phpunit.xml.dist

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
</testsuite>
1818
</testsuites>
1919
<php>
20-
<env name="MONGODB_URI" value="mongodb://mongodb/"/>
20+
<env name="MONGODB_URI" value="mongodb://mongodb/?directConnection=true"/>
2121
<env name="MONGODB_DATABASE" value="unittest"/>
2222
<env name="SQLITE_DATABASE" value=":memory:"/>
2323
<env name="QUEUE_CONNECTION" value="database"/>

Diff for: src/Scout/ScoutEngine.php

+2
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ public function __construct(
8484
#[Override]
8585
public function update($models)
8686
{
87+
assert($models instanceof EloquentCollection, new TypeError(sprintf('Argument #1 ($models) must be of type %s, %s given', EloquentCollection::class, get_debug_type($models))));
88+
8789
if ($models->isEmpty()) {
8890
return;
8991
}

0 commit comments

Comments
 (0)