Skip to content

Commit f9bf860

Browse files
committed
wot ❓
1 parent 131159c commit f9bf860

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/Services/Helpers/SoftwareVersionService.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424

2525
namespace Pterodactyl\Services\Helpers;
2626

27+
use stdClass;
2728
use Exception;
2829
use GuzzleHttp\Client;
2930
use Illuminate\Contracts\Cache\Repository as CacheRepository;
@@ -142,7 +143,7 @@ protected function cacheVersionData()
142143

143144
throw new CdnVersionFetchingException;
144145
} catch (Exception $exception) {
145-
return (object) [];
146+
return new stdClass();
146147
}
147148
});
148149
}

0 commit comments

Comments
 (0)