Skip to content

Commit ff6571d

Browse files
committed
fix: add phpstan-ignore for setting func
1 parent f058fd7 commit ff6571d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Controllers/OAuthController.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ public function redirectOAuth(string $oauthName): RedirectResponse
3232
return redirect()->to(config('Auth')->loginRedirect());
3333
}
3434

35+
/** @phpstan-ignore-next-line */
3536
if (setting('ShieldOAuthConfig.oauthConfigs')[$oauthName]['allow_login'] === false) {
3637
$errorText = 'ShieldOAuthLang.' . ucfirst($oauthName) . '.not_allow';
3738

@@ -93,6 +94,7 @@ public function callBack(): RedirectResponse
9394
$userid = $this->syncingUserInfo($find, $updateFields);
9495
} else {
9596
// Check config setting first to see if it can register automatically or not
97+
/** @phpstan-ignore-next-line */
9698
if (setting('ShieldOAuthConfig.oauthConfigs')[$oauthName]['allow_register'] === false) {
9799
return redirect()->to(config('Auth')->logoutRedirect())->with('error', lang('ShieldOAuthLang.Callback.account_not_found', [$userInfo->email]));
98100
}
@@ -164,6 +166,7 @@ private function syncingUserInfo(array $find = [], array $updateFields = []): in
164166
$users = model('ShieldOAuthModel');
165167
$user = $users->findByCredentials($find);
166168

169+
/** @phpstan-ignore-next-line */
167170
if (setting('ShieldOAuthConfig.syncingUserInfo') === true) {
168171
$user->fill($updateFields);
169172
}

0 commit comments

Comments
 (0)