- Fixed ternary where a false value was provided whenever the env var was empty
This commit is contained in:
1 parent
bea01badb7
commit
c026762fdb
1 file changed
+1
-1
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user