From c026762fdb9f75d255482ef369d54438f3371c40 Mon Sep 17 00:00:00 2001 From: Dave Mc Nicoll Date: Fri, 17 Nov 2023 16:01:54 -0500 Subject: [PATCH] - Fixed ternary where a false value was provided whenever the env var was empty --- src/Adapter/Rest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Adapter/Rest.php b/src/Adapter/Rest.php index d819884..8912e97 100644 --- a/src/Adapter/Rest.php +++ b/src/Adapter/Rest.php @@ -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) {