Skip to content

Commit

Permalink
style: add missing generic type usage
Browse files Browse the repository at this point in the history
  • Loading branch information
owenvoke committed Feb 9, 2024
1 parent 9958dd6 commit b258e6b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@
"spatie/laravel-package-tools": "^1.16"
},
"require-dev": {
"nunomaduro/collision": "^7.0 || ^8.1",
"larastan/larastan": "^2.6",
"nunomaduro/collision": "^7.0 || ^8.1",
"orchestra/testbench": "^8.0 || ^9.0",
"pestphp/pest": "^2.33",
"pestphp/pest-plugin-laravel": "^2.2",
"worksome/coding-style": "^2.8"
"worksome/coding-style": "^2.9"
},
"autoload": {
"psr-4": {
Expand Down
2 changes: 2 additions & 0 deletions src/Casts/ToFieldCaster.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@
use Illuminate\Contracts\Database\Eloquent\CastsAttributes;
use InvalidArgumentException;
use Worksome\MultiFactorAuth\DataValues\Email\EmailAddress;
use Worksome\MultiFactorAuth\DataValues\Identifier;
use Worksome\MultiFactorAuth\DataValues\Sms\E164PhoneNumber;
use Worksome\MultiFactorAuth\DataValues\Totp\TotpSecret;
use Worksome\MultiFactorAuth\Enums\Channel;
use Worksome\MultiFactorAuth\Exceptions\InvalidValueException;
use Worksome\MultiFactorAuth\Models\MultiFactor;

/** @implements CastsAttributes<Identifier, Identifier> */
class ToFieldCaster implements CastsAttributes
{
/** @param MultiFactor $model */
Expand Down
2 changes: 1 addition & 1 deletion src/Models/MultiFactor.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
* @property Carbon|null $verified_at
* @property Carbon $created_at
* @property Carbon $updated_at
* @property MultiFactorAuthenticatable $&Model $user
* @property Model&MultiFactorAuthenticatable $user
*/
class MultiFactor extends Model
{
Expand Down

0 comments on commit b258e6b

Please sign in to comment.