Use bitwise or instead of magic value for constant
authorJoshua Rüsweg <ruesweg@woltlab.com>
Thu, 18 Jun 2020 17:11:43 +0000 (19:11 +0200)
committerGitHub <noreply@github.com>
Thu, 18 Jun 2020 17:11:43 +0000 (19:11 +0200)
Co-authored-by: Tim Düsterhus <duesterhus@woltlab.com>
wcfsetup/install/files/lib/data/user/User.class.php

index b5a3583c4f4cb0a85a5dbd384528467abab22af0..97b7faf57da55085cfd05af1cfcbcce9da9c4e8f 100644 (file)
@@ -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 */
        /**