From: Jakub Vrana Date: Sat, 1 Dec 2018 08:58:42 +0000 (+0100) Subject: Fix return typehint X-Git-Tag: 1.34.0-rc.0~3282^2 X-Git-Url: http://git.cyclocoop.org/%22%20.%20%20%20%24self2%20.%20%20%20%22&var_mode_affiche=boucle?a=commitdiff_plain;h=d6851450278c9e97eabf5365cb2a7b2177cacea7;p=lhc%2Fweb%2Fwiklou.git Fix return typehint Found by PHPStan. Change-Id: I2e649aa85c84925886b6acfba2bbdde1a4f12214 --- diff --git a/includes/libs/redis/RedisConnRef.php b/includes/libs/redis/RedisConnRef.php index a73fac1193..d09620b415 100644 --- a/includes/libs/redis/RedisConnRef.php +++ b/includes/libs/redis/RedisConnRef.php @@ -44,22 +44,16 @@ class RedisConnRef implements LoggerAwareInterface { /** * No authentication errors. - * - * @var constant */ const AUTH_NO_ERROR = 200; /** * Temporary authentication error; recovered by reauthenticating. - * - * @var constant */ const AUTH_ERROR_TEMPORARY = 201; /** * Authentication error was permanent and could not be recovered. - * - * @var constant */ const AUTH_ERROR_PERMANENT = 202; @@ -210,7 +204,7 @@ class RedisConnRef implements LoggerAwareInterface { /** * Handle authentication errors and automatically reauthenticate. * - * @return constant self::AUTH_NO_ERROR, self::AUTH_ERROR_TEMPORARY, or self::AUTH_ERROR_PERMANENT + * @return int self::AUTH_NO_ERROR, self::AUTH_ERROR_TEMPORARY, or self::AUTH_ERROR_PERMANENT */ private function checkAuthentication() { if ( preg_match( '/^ERR operation not permitted\b/', $this->conn->getLastError() ) ) {