Skip to content

Commit

Permalink
Merge pull request #176 from NamelessCoder/feature/fix-late-static-bo…
Browse files Browse the repository at this point in the history
…und-constant

[BUGFIX] Use self:: instead of static:: late binding for private constants
  • Loading branch information
liayn authored Oct 4, 2024
2 parents 8f02945 + 3a8382a commit 6593630
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Classes/Service/AuthenticationService.php
Original file line number Diff line number Diff line change
Expand Up @@ -280,15 +280,15 @@ public function authUser(array $user): int
// missing access token means the actual OIDC authentication step in the `getUser` method failed
// or has neven been executed, if the user was discovered by some other authentication service
if (!isset($user['accessToken'])) {
return static::STATUS_AUTHENTICATION_FAILURE_CONTINUE;
return self::STATUS_AUTHENTICATION_FAILURE_CONTINUE;
}

// this is not a valid user authenticated via OIDC
if (empty($user['tx_oidc'])) {
return static::STATUS_AUTHENTICATION_FAILURE_CONTINUE;
return self::STATUS_AUTHENTICATION_FAILURE_CONTINUE;
}

return static::STATUS_AUTHENTICATION_SUCCESS_BREAK;
return self::STATUS_AUTHENTICATION_SUCCESS_BREAK;
}

/**
Expand Down

0 comments on commit 6593630

Please sign in to comment.