From b258e6bc5e0257b46e237de2922a0fa9d9b7f61b Mon Sep 17 00:00:00 2001 From: Owen Voke Date: Thu, 8 Feb 2024 10:31:42 +0000 Subject: [PATCH] style: add missing generic type usage --- composer.json | 4 ++-- src/Casts/ToFieldCaster.php | 2 ++ src/Models/MultiFactor.php | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index 311ee04..ff14883 100644 --- a/composer.json +++ b/composer.json @@ -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": { diff --git a/src/Casts/ToFieldCaster.php b/src/Casts/ToFieldCaster.php index 0f66474..6d1a32d 100644 --- a/src/Casts/ToFieldCaster.php +++ b/src/Casts/ToFieldCaster.php @@ -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 */ class ToFieldCaster implements CastsAttributes { /** @param MultiFactor $model */ diff --git a/src/Models/MultiFactor.php b/src/Models/MultiFactor.php index 5c8d7c1..643e21d 100644 --- a/src/Models/MultiFactor.php +++ b/src/Models/MultiFactor.php @@ -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 {