@@ -59,7 +59,7 @@ public function eval(string $script, array $keys = [], array $args = [])
5959 // mixed eval($script, $numkeys, $keyOrArg1 = null, $keyOrArgN = null)
6060 return call_user_func_array ([$ this ->redis , 'eval ' ], array_merge ([$ script , count ($ keys )], $ keys , $ args ));
6161 } catch (PRedisServerException $ e ) {
62- throw new ServerException ('eval command has failed ' , null , $ e );
62+ throw new ServerException ('eval command has failed ' , 0 , $ e );
6363 }
6464 }
6565
@@ -68,7 +68,7 @@ public function zadd(string $key, string $value, float $score): int
6868 try {
6969 return $ this ->redis ->zadd ($ key , [$ value => $ score ]);
7070 } catch (PRedisServerException $ e ) {
71- throw new ServerException ('zadd command has failed ' , null , $ e );
71+ throw new ServerException ('zadd command has failed ' , 0 , $ e );
7272 }
7373 }
7474
@@ -77,7 +77,7 @@ public function zrem(string $key, string $value): int
7777 try {
7878 return $ this ->redis ->zrem ($ key , [$ value ]);
7979 } catch (PRedisServerException $ e ) {
80- throw new ServerException ('zrem command has failed ' , null , $ e );
80+ throw new ServerException ('zrem command has failed ' , 0 , $ e );
8181 }
8282 }
8383
@@ -86,7 +86,7 @@ public function lpush(string $key, string $value): int
8686 try {
8787 return $ this ->redis ->lpush ($ key , [$ value ]);
8888 } catch (PRedisServerException $ e ) {
89- throw new ServerException ('lpush command has failed ' , null , $ e );
89+ throw new ServerException ('lpush command has failed ' , 0 , $ e );
9090 }
9191 }
9292
@@ -99,7 +99,7 @@ public function brpop(array $keys, int $timeout): ?RedisResult
9999
100100 return null ;
101101 } catch (PRedisServerException $ e ) {
102- throw new ServerException ('brpop command has failed ' , null , $ e );
102+ throw new ServerException ('brpop command has failed ' , 0 , $ e );
103103 }
104104 }
105105
@@ -112,7 +112,7 @@ public function rpop(string $key): ?RedisResult
112112
113113 return null ;
114114 } catch (PRedisServerException $ e ) {
115- throw new ServerException ('rpop command has failed ' , null , $ e );
115+ throw new ServerException ('rpop command has failed ' , 0 , $ e );
116116 }
117117 }
118118
0 commit comments