app(services): fix DeployServerDatabaseService phpstan

This commit is contained in:
Matthew Penner 2023-02-23 12:49:07 -07:00
parent 733771ae75
commit 0af39492e3
No known key found for this signature in database
1 changed files with 3 additions and 1 deletions

View File

@ -38,7 +38,9 @@ class DeployServerDatabaseService
throw new NoSuitableDatabaseHostException();
}
$databaseHostId = $hosts->random()->id;
/** @var \Pterodactyl\Models\DatabaseHost $databaseHost */
$databaseHost = $hosts->random();
$databaseHostId = $databaseHost->id;
}
return $this->managementService->create($server, [