Skip to content

Commit 956e855

Browse files
authored
fix: 修复魔术方法调用predis没有返回值 (#11)
1 parent 1206916 commit 956e855

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Redis.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,11 @@ public function __construct(array $config = [])
3939
*
4040
* @param string $name
4141
* @param array $arguments
42+
* @return mixed
4243
*/
43-
public function __call(string $name, array $arguments): void
44+
public function __call(string $name, array $arguments)
4445
{
45-
$this->client->$name(...$arguments);
46+
return $this->client->$name(...$arguments);
4647
}
4748

4849
/**

0 commit comments

Comments
 (0)