Conditions | 1 |
Paths | 1 |
Total Lines | 6 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 1 |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | 15 | public function boot(): void |
|
14 | { |
||
15 | 15 | Builder::macro('hasByJoin', function ($relationMethod, ?callable ...$constraints): Builder { |
|
|
|||
16 | /** @var \Illuminate\Database\Eloquent\Builder $query */ |
||
17 | 15 | $query = $this; |
|
18 | 15 | return (new HasByJoinMacro($query))($relationMethod, ...$constraints); |
|
19 | 15 | }); |
|
22 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.