We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 131159c commit f9bf860Copy full SHA for f9bf860
1 file changed
app/Services/Helpers/SoftwareVersionService.php
@@ -24,6 +24,7 @@
24
25
namespace Pterodactyl\Services\Helpers;
26
27
+use stdClass;
28
use Exception;
29
use GuzzleHttp\Client;
30
use Illuminate\Contracts\Cache\Repository as CacheRepository;
@@ -142,7 +143,7 @@ protected function cacheVersionData()
142
143
144
throw new CdnVersionFetchingException;
145
} catch (Exception $exception) {
- return (object) [];
146
+ return new stdClass();
147
}
148
});
149
0 commit comments