* @param string $password
* @return bool password correct
*/
- public function checkPassword($password)
- {
+ public function checkPassword(
+ // phpcs:disable Squiz.Functions.FunctionDeclarationArgumentSpacing.SpacingAfterHint
+ // phpcs:disable Squiz.Functions.MultiLineFunctionDeclaration.FirstParamSpacing
+ // https://github.com/squizlabs/PHP_CodeSniffer/pull/3320
+ #[\wcf\SensitiveArgument()]
+ $password
+ ) {
$isValid = false;
$manager = PasswordAlgorithmManager::getInstance();
/**
* @inheritDoc
*/
- public function loginManually($username, $password, $userClassname = User::class)
- {
+ public function loginManually(
+ $username,
+ // phpcs:disable Squiz.Functions.FunctionDeclarationArgumentSpacing.SpacingAfterHint
+ // https://github.com/squizlabs/PHP_CodeSniffer/pull/3320
+ #[\wcf\SensitiveArgument()]
+ $password,
+ $userClassname = User::class
+ ) {
$user = $this->getUserByLogin($username);
$userSession = (\get_class($user) == $userClassname ? $user : new $userClassname(null, null, $user));