Skip to content

Commit f80b7ac

Browse files
committed
Fix compatibility with Laravel < 10.29
1 parent 337cd3e commit f80b7ac

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

src/Eloquent/Builder.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,15 @@ class Builder extends EloquentBuilder
4848
'raw',
4949
'sum',
5050
'tomql',
51+
// Kept for compatibility with Laravel < 10.3
52+
'doesntExist',
53+
'getBindings',
54+
'getConnection',
55+
'getGrammar',
56+
'insertGetId',
57+
'insertOrIgnore',
58+
'insertUsing',
59+
'toMql',
5160
];
5261

5362
/** @inheritdoc */

tests/Eloquent/CallBuilderTest.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,13 @@
1818

1919
final class CallBuilderTest extends TestCase
2020
{
21-
#[Test]
21+
protected function tearDown(): void
22+
{
23+
User::truncate();
24+
}
25+
2226
#[Dataprovider('provideFunctionNames')]
23-
public function callingABuilderMethodDoesNotReturnTheBuilderInstance(string $method, string $className, $parameters = []): void
27+
public function testCallingABuilderMethodDoesNotReturnTheBuilderInstance(string $method, string $className, $parameters = []): void
2428
{
2529
$builder = User::query()->newQuery();
2630
assert($builder instanceof Builder);

0 commit comments

Comments
 (0)