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 Mar 20, 2024
1 parent 9958dd6 commit 6ac76d2
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
[![GitHub Code Style Action Status](https://img.shields.io/github/workflow/status/worksome/laravel-mfa/Static%20Analysis?style=flat-square&label=code%20style)](https://github.com/worksome/laravel-mfa/actions?query=workflow%3A"Static+Analysis"+branch%3Amain)
[![Total Downloads](https://img.shields.io/packagist/dt/worksome/laravel-mfa.svg?style=flat-square)](https://packagist.org/packages/worksome/laravel-mfa)

A driver-based multifactor authentication package for Laravel
A driver-based multi-factor authentication package for Laravel

## Installation

Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "worksome/laravel-mfa",
"description": "A driver-based multifactor authentication package for Laravel",
"description": "A driver-based multi-factor authentication package for Laravel",
"keywords": [
"worksome",
"laravel",
Expand All @@ -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.10"
},
"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
4 changes: 3 additions & 1 deletion tests/Pest.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
<?php

declare(strict_types=1);

use Worksome\MultiFactorAuth\Tests\TestCase;

uses(TestCase::class)->in(__DIR__ . '/Feature');
uses(TestCase::class)->in('Feature');

// Test functions

Expand Down

0 comments on commit 6ac76d2

Please sign in to comment.