Skip to content

Commit

Permalink
Change pass var name to password.
Browse files Browse the repository at this point in the history
  • Loading branch information
denpamusic committed Sep 8, 2018
1 parent b8f0e4e commit fddbb59
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function __construct($config = [])
'base_uri' => "${config['scheme']}://${config['host']}:${config['port']}",
'auth' => [
$config['user'],
$config['pass'],
$config['password'],
],
'verify' => isset($config['ca']) && is_file($config['ca']) ?
$config['ca'] : true,
Expand Down Expand Up @@ -222,12 +222,15 @@ public function __call($method, array $params = [])
*/
protected function defaultConfig(array $config = [])
{
// use same var name as laravel-bitcoinrpc
$config['password'] = isset($config['pass']) ? $config['pass'] : '';

$defaults = [
'scheme' => 'http',
'host' => '127.0.0.1',
'port' => 8332,
'user' => '',
'pass' => '',
'scheme' => 'http',
'host' => '127.0.0.1',
'port' => 8332,
'user' => '',
'password' => '',
];

return array_merge($defaults, $config);
Expand Down

0 comments on commit fddbb59

Please sign in to comment.