Skip to content

Commit

Permalink
update the model
Browse files Browse the repository at this point in the history
  • Loading branch information
warcooft authored Jul 18, 2024
1 parent 8aeca80 commit 4a49a82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Authentication/Actions/EmailActivator.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ public function show(): string
throw new RuntimeException('Cannot send email for user: ' . $user->email . "\n" . $email->printDebugger(['headers']));
}

// Add flag
model('UserIdentityModel')
/** @var UserIdentityModel $identityModel */
model(UserIdentityModel::class)

Check failure on line 96 in src/Authentication/Actions/EmailActivator.php

View workflow job for this annotation

GitHub Actions / phpstan / PHP 7.4 Static Analysis

Ignored error pattern #^Call to function model with CodeIgniter\\Shield\\Models\\UserIdentityModel\:\:class is discouraged\.$# in path /home/runner/work/shield/shield/src/Authentication/Actions/EmailActivator.php is expected to occur 2 times, but occurred 3 times.

Check failure on line 96 in src/Authentication/Actions/EmailActivator.php

View workflow job for this annotation

GitHub Actions / phpstan / PHP 7.4 Static Analysis

Variable $identityModel in PHPDoc tag @var does not exist.

Check failure on line 96 in src/Authentication/Actions/EmailActivator.php

View workflow job for this annotation

GitHub Actions / phpstan / PHP 8.1 Static Analysis

Ignored error pattern #^Call to function model with CodeIgniter\\Shield\\Models\\UserIdentityModel\:\:class is discouraged\.$# in path /home/runner/work/shield/shield/src/Authentication/Actions/EmailActivator.php is expected to occur 2 times, but occurred 3 times.

Check failure on line 96 in src/Authentication/Actions/EmailActivator.php

View workflow job for this annotation

GitHub Actions / phpstan / PHP 8.1 Static Analysis

Variable $identityModel in PHPDoc tag @var does not exist.

Check failure on line 96 in src/Authentication/Actions/EmailActivator.php

View workflow job for this annotation

GitHub Actions / phpstan / PHP 8.0 Static Analysis

Ignored error pattern #^Call to function model with CodeIgniter\\Shield\\Models\\UserIdentityModel\:\:class is discouraged\.$# in path /home/runner/work/shield/shield/src/Authentication/Actions/EmailActivator.php is expected to occur 2 times, but occurred 3 times.

Check failure on line 96 in src/Authentication/Actions/EmailActivator.php

View workflow job for this annotation

GitHub Actions / phpstan / PHP 8.0 Static Analysis

Variable $identityModel in PHPDoc tag @var does not exist.

Check failure on line 96 in src/Authentication/Actions/EmailActivator.php

View workflow job for this annotation

GitHub Actions / phpstan / PHP 8.2 Static Analysis

Ignored error pattern #^Call to function model with CodeIgniter\\Shield\\Models\\UserIdentityModel\:\:class is discouraged\.$# in path /home/runner/work/shield/shield/src/Authentication/Actions/EmailActivator.php is expected to occur 2 times, but occurred 3 times.

Check failure on line 96 in src/Authentication/Actions/EmailActivator.php

View workflow job for this annotation

GitHub Actions / phpstan / PHP 8.2 Static Analysis

Variable $identityModel in PHPDoc tag @var does not exist.

Check failure on line 96 in src/Authentication/Actions/EmailActivator.php

View workflow job for this annotation

GitHub Actions / phpstan / PHP 8.3 Static Analysis

Ignored error pattern #^Call to function model with CodeIgniter\\Shield\\Models\\UserIdentityModel\:\:class is discouraged\.$# in path /home/runner/work/shield/shield/src/Authentication/Actions/EmailActivator.php is expected to occur 2 times, but occurred 3 times.

Check failure on line 96 in src/Authentication/Actions/EmailActivator.php

View workflow job for this annotation

GitHub Actions / phpstan / PHP 8.3 Static Analysis

Variable $identityModel in PHPDoc tag @var does not exist.
->where('secret', $code)
->set(['secret2' => 'SEND'])
->update();
Expand Down

0 comments on commit 4a49a82

Please sign in to comment.