From: Tim Düsterhus Date: Fri, 13 May 2022 09:38:41 +0000 (+0200) Subject: Remove obsolete workaround for PHP_CodeSniffer bug X-Git-Tag: 5.5.0_Beta_3~42 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2b9f8fe03eb4b8a860361d87dde2d0937ed81570;p=GitHub%2FWoltLab%2FWCF.git Remove obsolete workaround for PHP_CodeSniffer bug --- diff --git a/wcfsetup/install/files/lib/data/user/User.class.php b/wcfsetup/install/files/lib/data/user/User.class.php index a1d6404cb2..8e306574f0 100644 --- a/wcfsetup/install/files/lib/data/user/User.class.php +++ b/wcfsetup/install/files/lib/data/user/User.class.php @@ -154,9 +154,6 @@ final class User extends DatabaseObject implements IPopoverObject, IRouteControl * @return bool password correct */ 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 ) { diff --git a/wcfsetup/install/files/lib/system/user/authentication/DefaultUserAuthentication.class.php b/wcfsetup/install/files/lib/system/user/authentication/DefaultUserAuthentication.class.php index 2f22167665..c14878ea92 100644 --- a/wcfsetup/install/files/lib/system/user/authentication/DefaultUserAuthentication.class.php +++ b/wcfsetup/install/files/lib/system/user/authentication/DefaultUserAuthentication.class.php @@ -36,8 +36,6 @@ class DefaultUserAuthentication extends AbstractUserAuthentication */ public function loginManually( $username, - // phpcs:disable Squiz.Functions.FunctionDeclarationArgumentSpacing.SpacingAfterHint - // https://github.com/squizlabs/PHP_CodeSniffer/pull/3320 #[\wcf\SensitiveArgument()] $password, $userClassname = User::class