Skip to content

Commit

Permalink
Add type hint for HasApiTokens
Browse files Browse the repository at this point in the history
  • Loading branch information
kberzinch committed Nov 23, 2024
1 parent 5fa4105 commit d96bec2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/Models/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@

class User extends Authenticatable
{
/**
* Users can have Sanctum API tokens.
*
* @uses \Laravel\Sanctum\HasApiTokens<\Laravel\Sanctum\PersonalAccessToken>
*/
use HasApiTokens;

Check failure on line 17 in app/Models/User.php

View workflow job for this annotation

GitHub Actions / Lint

Class App\Models\User uses generic trait Laravel\Sanctum\HasApiTokens but does not specify its types: TTokenModel

/**
Expand Down

0 comments on commit d96bec2

Please sign in to comment.