public function testCo(){
go(function (){
$client =new Redis();
$client->set("a",1,10);
var_dump($client->get('a'));
$client->has('a');
});
}
Provide minimal script to reproduce the issue
string(1) "1"
PHP Warning: Swoole\Coroutine\Redis::exists() expects parameter 1 to be string, array given in /Volumes/Work/service/vendor/swoft/framework/src/Helper/PhpHelper.php on line 46
Warning: Swoole\Coroutine\Redis::exists() expects parameter 1 to be string, array given in /Volumes/Work/service/vendor/swoft/framework/src/Helper/PhpHelper.php on line 46
PHP Fatal error: Uncaught TypeError: Return value of Swoft\Redis\Redis::has() must be of the type boolean, null returned in /Volumes/Work/service/vendor/swoft/redis/src/Redis.php:221
Stack trace:
#0 /Volumes/Work/service/test/Cases/Common/RedisCoTest.php(23): Swoft\Redis\Redis->has('a')
#1 {main}
thrown in /Volumes/Work/service/vendor/swoft/redis/src/Redis.php on line 221
Fatal error: Uncaught TypeError: Return value of Swoft\Redis\Redis::has() must be of the type boolean, null returned in /Volumes/Work/service/vendor/swoft/redis/src/Redis.php:221
Stack trace:
#0 /Volumes/Work/service/test/Cases/Common/RedisCoTest.php(23): Swoft\Redis\Redis->has('a')
#1 {main}
thrown in /Volumes/Work/service/vendor/swoft/redis/src/Redis.php on line 221
Details