app(services): fix DeployServerDatabaseService phpstan
This commit is contained in:
parent
733771ae75
commit
0af39492e3
1 changed files with 3 additions and 1 deletions
|
@ -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, [
|
||||
|
|
Loading…
Reference in a new issue