Skip to content

Commit

Permalink
Merge pull request #740 from datamweb/fix-psalm-error
Browse files Browse the repository at this point in the history
chore: fix psalm error
  • Loading branch information
datamweb committed May 12, 2023
2 parents 8123388 + 5ffb6a6 commit 22443d0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Controllers/MagicLinkController.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ class MagicLinkController extends BaseController
public function __construct()
{
helper('setting');
$providerClass = setting('Auth.userProvider');

/** @var class-string<UserModel> $providerClass */
$providerClass = setting('Auth.userProvider');

$this->provider = new $providerClass();
}

Expand Down

0 comments on commit 22443d0

Please sign in to comment.