From 32d4f83f4df7ca03f66a401a2816310c055555fb Mon Sep 17 00:00:00 2001 From: Rhys Lees <43909932+RhysLees@users.noreply.github.com> Date: Tue, 21 May 2024 00:40:51 +0100 Subject: [PATCH] WIP --- src/Connectors/DocuWareConnector.php | 2 +- src/DTO/General/UserManagement/GetUsers/User.php | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Connectors/DocuWareConnector.php b/src/Connectors/DocuWareConnector.php index f297b5f..627e1ad 100644 --- a/src/Connectors/DocuWareConnector.php +++ b/src/Connectors/DocuWareConnector.php @@ -61,7 +61,7 @@ protected function getOrCreateNewOAuthToken() // get instance name of $this->configuration as string $instanceName = get_class($this->configuration); - $cacheKey = 'docuware.oauth.'.$instanceName.'.'.$this->configuration->url.'.'.$this->configuration?->username; + $cacheKey = 'docuware.oauth.'.$instanceName.'.'.$this->configuration->url.'.'.($this->configuration->username ?? ''); $token = null; diff --git a/src/DTO/General/UserManagement/GetUsers/User.php b/src/DTO/General/UserManagement/GetUsers/User.php index 850257d..6727a07 100644 --- a/src/DTO/General/UserManagement/GetUsers/User.php +++ b/src/DTO/General/UserManagement/GetUsers/User.php @@ -44,6 +44,7 @@ public function __construct( public static function fake( ?string $id = null, ?string $name = null, + ?string $salutation = null, ?string $firstName = null, ?string $lastName = null, ?string $dbName = null, @@ -57,6 +58,7 @@ public static function fake( return new self( id: $id ?? (string) Str::uuid(), name: $name ?? (string) 'Fake File Cabinet', + salutation: $salutation ?? (string) 'Fake Salutation', firstName: $firstName ?? (string) 'Fake First Name', lastName: $lastName ?? (string) 'Fake Last Name', dbName: $dbName ?? (string) 'Fake DB Name',