From f9bf8603b2ddfc75e178a1d256d7a18a1853894a Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Mon, 11 Sep 2017 00:15:48 -0500 Subject: [PATCH] wot :question: --- app/Services/Helpers/SoftwareVersionService.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Services/Helpers/SoftwareVersionService.php b/app/Services/Helpers/SoftwareVersionService.php index 87f84a401..15b4445f9 100644 --- a/app/Services/Helpers/SoftwareVersionService.php +++ b/app/Services/Helpers/SoftwareVersionService.php @@ -24,6 +24,7 @@ namespace Pterodactyl\Services\Helpers; +use stdClass; use Exception; use GuzzleHttp\Client; use Illuminate\Contracts\Cache\Repository as CacheRepository; @@ -142,7 +143,7 @@ class SoftwareVersionService throw new CdnVersionFetchingException; } catch (Exception $exception) { - return (object) []; + return new stdClass(); } }); }