Conditions | 1 |
Paths | 1 |
Total Lines | 17 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
21 | public function up() |
||
22 | { |
||
23 | Schema::create('u2f_key', function(Blueprint $table) { |
||
24 | $table->increments('id'); |
||
25 | $table->integer('user_id')->unsigned(); |
||
26 | $table->string('keyHandle'); |
||
27 | $table->string('publicKey')->unique(); |
||
28 | $table->text('certificate'); |
||
29 | $table->integer('counter'); |
||
30 | $table->timestamps(); |
||
31 | }); |
||
32 | |||
33 | Schema::table('u2f_key', function(Blueprint $table) |
||
34 | { |
||
35 | $table->foreign('user_id')->references('id')->on('users')->onDelete('cascade'); |
||
|
|||
36 | }); |
||
37 | } |
||
38 | |||
49 |
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: