Update code for php 8.5 compatibility

This commit is contained in:
DariusIII
2026-01-22 12:44:59 +01:00
parent ce1e1a2485
commit d0aa6f23ab
26 changed files with 94 additions and 75 deletions
@@ -10,6 +10,7 @@
use App\Services\AdultProcessing\AgeVerificationManager;
use GuzzleHttp\Client;
use GuzzleHttp\Exception\RequestException;
use Illuminate\Support\Facades\Log;
if (! function_exists('getRawHtmlWithAgeVerification')) {
/**
@@ -82,13 +83,13 @@ if (! function_exists('getRawHtmlWithAgeVerification')) {
} catch (RequestException $e) {
if (config('app.debug') === true) {
\Log::error('getRawHtmlWithAgeVerification: '.$e->getMessage());
Log::error('getRawHtmlWithAgeVerification: '.$e->getMessage());
}
return false;
} catch (\Exception $e) {
if (config('app.debug') === true) {
\Log::error('getRawHtmlWithAgeVerification: '.$e->getMessage());
Log::error('getRawHtmlWithAgeVerification: '.$e->getMessage());
}
return false;