Skip to content

Commit 39fbea6

Browse files
committed
Pass a Redis instance or an array with host, port and options
1 parent 9dd6f1b commit 39fbea6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/JuanF/Lib/Persistence/Redis.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class Redis extends Persistence
3232
*
3333
* @param array $parmas
3434
*/
35-
public static function init($params)
35+
public static function init($params = null)
3636
{
3737
if ($params instanceof \Redis) {
3838
self::$redisInstance = $params;

0 commit comments

Comments
 (0)