| Total Complexity | 2 | 
| Total Lines | 28 | 
| Duplicated Lines | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 7 | class CreateCustomerSystemFieldsTable extends Migration  | 
            ||
| 8 | { | 
            ||
| 9 | /**  | 
            ||
| 10 | * Run the migrations.  | 
            ||
| 11 | *  | 
            ||
| 12 | * @return void  | 
            ||
| 13 | */  | 
            ||
| 14 | public function up()  | 
            ||
| 26 | |||
| 27 | /**  | 
            ||
| 28 | * Reverse the migrations.  | 
            ||
| 29 | *  | 
            ||
| 30 | * @return void  | 
            ||
| 31 | */  | 
            ||
| 32 | public function down()  | 
            ||
| 33 |     { | 
            ||
| 34 |         Schema::dropIfExists('customer_system_fields'); | 
            ||
| 35 | }  | 
            ||
| 37 | 
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: