1 | <?php |
||
24 | class Builder extends \Illuminate\Database\Schema\Builder |
||
25 | { |
||
26 | /** |
||
27 | * The database connection instance. |
||
28 | * |
||
29 | * @var \Illuminate\Database\Connection|CouchbaseConnection |
||
30 | */ |
||
31 | protected $connection; |
||
32 | |||
33 | /** |
||
34 | * {@inheritdoc} |
||
35 | */ |
||
36 | 4 | public function hasTable($table) |
|
49 | |||
50 | /** |
||
51 | * {@inheritdoc} |
||
52 | */ |
||
53 | 2 | public function hasColumn($table, $column) |
|
57 | |||
58 | /** |
||
59 | * {@inheritdoc} |
||
60 | */ |
||
61 | 2 | public function hasColumns($table, array $columns) |
|
65 | |||
66 | /** |
||
67 | * needs administrator password, user |
||
68 | * |
||
69 | * @param string $collection |
||
70 | * @param Closure|null $callback |
||
71 | * |
||
72 | * @return void |
||
73 | */ |
||
74 | 8 | public function create($collection, Closure $callback = null) |
|
83 | |||
84 | /** |
||
85 | * {@inheritdoc} |
||
86 | */ |
||
87 | public function drop($collection) |
||
95 | |||
96 | /** |
||
97 | * {@inheritdoc} |
||
98 | */ |
||
99 | 8 | protected function createBlueprint($table, Closure $callback = null): Blueprint |
|
106 | } |
||
107 |
It seems like the method you are trying to call exists only in some of the possible types.
Let’s take a look at an example:
Available Fixes
Add an additional type-check:
Only allow a single type to be passed if the variable comes from a parameter: