Skip to content

Commit

Permalink
Fix type error in Virtfusion ApiClient::create()
Browse files Browse the repository at this point in the history
  • Loading branch information
uphlewis committed Dec 13, 2024
1 parent c32e50e commit 4ec25b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Virtfusion/ApiClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ public function getAuthenticationTokens(int $extUserId, int $serverId): array
*/
public function create(CreateParams $params): string
{
$userId = $params->customer_identifier;
$userId = (int)$params->customer_identifier;
if (!$userId) {
$userId = $this->createUser($params);
}
Expand Down

0 comments on commit 4ec25b5

Please sign in to comment.