From: Joshua Rüsweg Date: Thu, 18 Jun 2020 17:11:43 +0000 (+0200) Subject: Use bitwise or instead of magic value for constant X-Git-Tag: 5.3.0_Alpha_1~182^2~3 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a16e4584934ebe1df7b4dee01fbdb908a4cc86ba;p=GitHub%2FWoltLab%2FWCF.git Use bitwise or instead of magic value for constant Co-authored-by: Tim Düsterhus --- diff --git a/wcfsetup/install/files/lib/data/user/User.class.php b/wcfsetup/install/files/lib/data/user/User.class.php index b5a3583c4f..97b7faf57d 100644 --- a/wcfsetup/install/files/lib/data/user/User.class.php +++ b/wcfsetup/install/files/lib/data/user/User.class.php @@ -108,7 +108,7 @@ final class User extends DatabaseObject implements IRouteController, IUserConten const REGISTER_ACTIVATION_NONE = 0; const REGISTER_ACTIVATION_USER = 1; const REGISTER_ACTIVATION_ADMIN = 2; - const REGISTER_ACTIVATION_USER_AND_ADMIN = 3; // self::REGISTER_ACTIVATION_USER | self::REGISTER_ACTIVATION_ADMIN + const REGISTER_ACTIVATION_USER_AND_ADMIN = self::REGISTER_ACTIVATION_USER | self::REGISTER_ACTIVATION_ADMIN /** @noinspection PhpMissingParentConstructorInspection */ /**