Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
RhysLees committed May 20, 2024
1 parent 863827a commit 32d4f83
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Connectors/DocuWareConnector.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 2 additions & 0 deletions src/DTO/General/UserManagement/GetUsers/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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',
Expand Down

0 comments on commit 32d4f83

Please sign in to comment.