* [task#121999] Use "static" keyword instead of "self".

This commit is contained in:
dingguodong
2024-06-28 16:59:08 +08:00
committed by 刘永凯
parent c8438e8c43
commit 6326df2741
+2 -2
View File
@@ -478,7 +478,7 @@ class baseRouter
if($this->config->framework->autoConnectDB) $this->connectDB();
if($this->config->redis) $this->redis = self::connectToRedis();
if($this->config->redis) $this->redis = static::connectToRedis();
$this->setupProfiling();
$this->setupXhprof();
@@ -3480,7 +3480,7 @@ class baseRouter
* @link https://github.com/phpredis/phpredis/
* @return Redis|object|false
*/
public function connectToRedis()
static public function connectToRedis()
{
if(!extension_loaded('redis')) return false;