- Fixed a bug where auth would have 'false' as value
This commit is contained in:
parent
a16cb846f3
commit
b3e792e20f
|
@ -39,7 +39,7 @@ class Rest implements AdapterInterface
|
|||
|
||||
public function setup(array $configuration): void
|
||||
{
|
||||
$this->auth = AuthenticationEnum::from($configuration['auth'] ?? AuthenticationEnum::Basic->value);
|
||||
$this->auth = AuthenticationEnum::from($configuration['auth'] ?: AuthenticationEnum::Basic->value);
|
||||
$this->url = rtrim($configuration['url'], '/');
|
||||
|
||||
foreach([ 'username', 'password', 'token', 'headers', 'options' ] as $conf) {
|
||||
|
|
Loading…
Reference in New Issue