From b3e792e20ffe09a3766b9d914223e5a9dbc25de0 Mon Sep 17 00:00:00 2001 From: Dave Mc Nicoll Date: Tue, 7 Nov 2023 15:03:24 -0500 Subject: [PATCH] - Fixed a bug where auth would have 'false' as value --- 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 e5886f2..e06978c 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) {