1 | <?php |
||
9 | class CreateFormResponsesTable extends Migration |
||
10 | { |
||
11 | /** |
||
12 | * Run the migrations. |
||
13 | * |
||
14 | * @return void |
||
15 | */ |
||
16 | public function up() |
||
33 | |||
34 | /** |
||
35 | * Reverse the migrations. |
||
36 | * |
||
37 | * @return void |
||
38 | */ |
||
39 | public function down() |
||
43 | |||
44 | /** |
||
45 | * Get jsonable column data type. |
||
46 | * |
||
47 | * @return string |
||
48 | */ |
||
49 | protected function jsonable(): string |
||
57 | } |
||
58 |
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: