Skip to content

Commit 7fc31e2

Browse files
committed
Fix tests
1 parent fd45ead commit 7fc31e2

File tree

4 files changed

+14
-0
lines changed

4 files changed

+14
-0
lines changed

phpstan-baseline.neon

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
parameters:
22
ignoreErrors:
3+
-
4+
message: "#^Class MongoDB\\\\Laravel\\\\Query\\\\Grammar does not have a constructor and must be instantiated without any parameters\\.$#"
5+
count: 1
6+
path: src/Connection.php
7+
8+
-
9+
message: "#^Class MongoDB\\\\Laravel\\\\Schema\\\\Grammar does not have a constructor and must be instantiated without any parameters\\.$#"
10+
count: 1
11+
path: src/Connection.php
12+
313
-
414
message: "#^Access to an undefined property Illuminate\\\\Container\\\\Container\\:\\:\\$config\\.$#"
515
count: 3

src/Connection.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,12 +345,14 @@ protected function getDefaultPostProcessor()
345345
/** @inheritdoc */
346346
protected function getDefaultQueryGrammar()
347347
{
348+
// Argument added in Laravel 12
348349
return new Query\Grammar($this);
349350
}
350351

351352
/** @inheritdoc */
352353
protected function getDefaultSchemaGrammar()
353354
{
355+
// Argument added in Laravel 12
354356
return new Schema\Grammar($this);
355357
}
356358

src/Schema/Blueprint.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
namespace MongoDB\Laravel\Schema;
66

7+
use Closure;
78
use Illuminate\Database\Connection;
89
use Illuminate\Database\Schema\Blueprint as SchemaBlueprint;
910
use MongoDB\Collection;

tests/RelationsTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ public function tearDown(): void
3535
Photo::truncate();
3636
Label::truncate();
3737
Skill::truncate();
38+
Soft::truncate();
3839

3940
parent::tearDown();
4041
}

0 commit comments

Comments
 (0)