1 | <?php |
||
23 | class Builder extends \Illuminate\Database\Schema\Builder |
||
24 | { |
||
25 | /** |
||
26 | * The database connection instance. |
||
27 | * |
||
28 | * @var \Illuminate\Database\Connection|CouchbaseConnection |
||
29 | */ |
||
30 | protected $connection; |
||
31 | |||
32 | /** |
||
33 | * {@inheritdoc} |
||
34 | */ |
||
35 | 2 | public function hasTable($table) |
|
45 | |||
46 | /** |
||
47 | * {@inheritdoc} |
||
48 | */ |
||
49 | 1 | public function hasColumn($table, $column) |
|
53 | |||
54 | /** |
||
55 | * {@inheritdoc} |
||
56 | */ |
||
57 | 1 | public function hasColumns($table, array $columns) |
|
61 | |||
62 | /** |
||
63 | * needs administrator password, user |
||
64 | * @param string $collection |
||
65 | * @param Closure|null $callback |
||
66 | * |
||
67 | * @return void |
||
68 | */ |
||
69 | 2 | public function create($collection, Closure $callback = null) |
|
78 | |||
79 | /** |
||
80 | * {@inheritdoc} |
||
81 | */ |
||
82 | public function drop($collection) |
||
89 | |||
90 | /** |
||
91 | * {@inheritdoc} |
||
92 | */ |
||
93 | 2 | protected function createBlueprint($table, Closure $callback = null) |
|
100 | } |
||
101 |
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: