Skip to content

Commit 9f2a900

Browse files
committed
fix: fix syntax error under php 7.4
build: [release]
1 parent dcd0853 commit 9f2a900

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/Client.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@ class Client extends Base {
1515

1616
public string $name;
1717

18-
public function __construct( string $name = 'default', string|array $redis_nodes = [] ) {
18+
/**
19+
* @param string|array $redis_nodes Standalone Redis host:port string or Redis Cluster seed node list.
20+
*/
21+
public function __construct( string $name = 'default', $redis_nodes = [] ) {
1922
$this->name = $name;
2023

2124
if ( ! $redis_nodes ) {

0 commit comments

Comments
 (0)