umbrellio /
laravel-ltree
| 1 | <?php |
||
| 2 | |||
| 3 | declare(strict_types=1); |
||
| 4 | |||
| 5 | namespace Umbrellio\LTree\Relations; |
||
| 6 | |||
| 7 | use Illuminate\Database\Eloquent\Builder; |
||
| 8 | use Umbrellio\LTree\Traits\LTreeModelTrait; |
||
| 9 | |||
| 10 | class BelongsToParentsTree extends AbstractBelongsToTree |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @param Builder|LTreeModelTrait $model |
||
| 14 | */ |
||
| 15 | 2 | protected function getQueryForTree($model): Builder |
|
| 16 | { |
||
| 17 | return $model |
||
| 18 | 2 | ->newQuery() |
|
|
0 ignored issues
–
show
|
|||
| 19 | 2 | ->ancestorsOf($model) |
|
| 20 | 2 | ->orderBy($this->getLTreeRelated()->getLtreePathColumn()); |
|
| 21 | } |
||
| 22 | |||
| 23 | 2 | protected function getOperator(): string |
|
| 24 | { |
||
| 25 | 2 | return '@>'; |
|
| 26 | } |
||
| 27 | } |
||
| 28 |
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.