This commit is contained in:
2020-12-17 14:12:44 +08:00
parent 9516baef92
commit 33e5416dda
38 changed files with 100 additions and 101 deletions
+3 -3
View File
@@ -5,7 +5,7 @@ declare(strict_types=1);
namespace Snowflake\Pool;
use JetBrains\PhpStorm\Pure;
use Snowflake\Snowflake;
/**
@@ -21,7 +21,7 @@ class Pool extends \Snowflake\Abstracts\Pool
/**
* @return Redis
*/
#[Pure] public function getRedis(): Redis
public function getRedis(): Redis
{
return Snowflake::app()->redis_connections;
}
@@ -29,7 +29,7 @@ class Pool extends \Snowflake\Abstracts\Pool
/**
* @return Connection
*/
#[Pure] public function getDb(): Connection
public function getDb(): Connection
{
return Snowflake::app()->connections;
}