Issues (56)

src/Schema/LTreeBlueprint.php (1 issue)

Labels
Severity
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Umbrellio\LTree\Schema;
6
7
use Illuminate\Support\Fluent;
8
use Umbrellio\LTree\Types\LTreeType;
9
use Umbrellio\Postgres\Extensions\Schema\AbstractBlueprint;
10
11
class LTreeBlueprint extends AbstractBlueprint
12
{
13 52
    public function ltree()
14
    {
15 52
        return function (string $column): Fluent {
16 42
            return $this->addColumn(LTreeType::TYPE_NAME, $column);
0 ignored issues
show
The method addColumn() does not exist on Umbrellio\LTree\Schema\LTreeBlueprint. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

16
            return $this->/** @scrutinizer ignore-call */ addColumn(LTreeType::TYPE_NAME, $column);

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.

Loading history...
17 52
        };
18
    }
19
}
20