Skip to content

Commit 72024af

Browse files
authored
Allow `$options` to be passed as `NULL`.
1 parent 39513ca commit 72024af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

redis_cluster.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ PHP_METHOD(RedisCluster, __construct) {
477477

478478
// Parse arguments
479479
if (zend_parse_method_parameters(ZEND_NUM_ARGS(), getThis(),
480-
"Os!|addbza", &object, redis_cluster_ce, &name,
480+
"Os!|addbza!", &object, redis_cluster_ce, &name,
481481
&name_len, &z_seeds, &timeout, &read_timeout,
482482
&persistent, &z_auth, &context) == FAILURE)
483483
{

0 commit comments

Comments
 (0)