Skip to content

Commit

Permalink
improve: alter user,pwd default empty
Browse files Browse the repository at this point in the history
  • Loading branch information
onanying committed May 8, 2020
1 parent 528813a commit de2e2c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Configurator.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class Configurator implements ConfiguratorInterface
* @param string $password
* @param int $timeout
*/
public function __construct(string $url, string $user, string $password, int $timeout = 5)
public function __construct(string $url, string $user = '', string $password = '', int $timeout = 5)
{
$this->url = $url;
$this->user = $user;
Expand Down
2 changes: 1 addition & 1 deletion src/Registry.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ class Registry implements RegistryInterface
* @param string $password
* @param int $timeout
*/
public function __construct(string $url, string $user, string $password, int $timeout = 5)
public function __construct(string $url, string $user = '', string $password = '', int $timeout = 5)
{
$this->url = $url;
$this->user = $user;
Expand Down

0 comments on commit de2e2c5

Please sign in to comment.