| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | public function up() |
||
| 15 | { |
||
| 16 | Schema::create('oauth_access_tokens', function (Blueprint $table) { |
||
| 17 | $table->string('id', 100)->primary(); |
||
| 18 | $table->unsignedInteger('user_id')->nullable(); |
||
| 19 | $table->unsignedInteger('client_id'); |
||
| 20 | $table->string('name')->nullable(); |
||
| 21 | $table->text('scopes')->nullable(); |
||
| 22 | $table->boolean('revoked'); |
||
| 23 | $table->timestamps(); |
||
| 24 | $table->dateTime('expires_at')->nullable(); |
||
| 25 | |||
| 26 | $table->foreign('user_id')->references('id')->on('users'); |
||
|
|
|||
| 27 | $table->foreign('client_id')->references('id')->on('oauth_clients'); |
||
| 28 | }); |
||
| 29 | } |
||
| 30 | |||
| 41 |
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: