From 0af39492e3fa326347488fcd82b4e5de395c8c5c Mon Sep 17 00:00:00 2001 From: Matthew Penner Date: Thu, 23 Feb 2023 12:49:07 -0700 Subject: [PATCH] app(services): fix DeployServerDatabaseService phpstan --- app/Services/Databases/DeployServerDatabaseService.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Services/Databases/DeployServerDatabaseService.php b/app/Services/Databases/DeployServerDatabaseService.php index ec678e40a..f10473bf1 100644 --- a/app/Services/Databases/DeployServerDatabaseService.php +++ b/app/Services/Databases/DeployServerDatabaseService.php @@ -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, [