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
+2 -1
View File
@@ -3,6 +3,7 @@
namespace App\Support;
use App\Services\TurnstileService;
use Illuminate\Support\Facades\Log;
class CaptchaHelper
{
@@ -24,7 +25,7 @@ class CaptchaHelper
// If both are configured as enabled, log a warning and use the configured provider
if ($recaptchaEnabled && $turnstileEnabled) {
\Log::warning('Both reCAPTCHA and Turnstile are enabled. Only one can be active at a time. Using provider: '.$provider);
Log::warning('Both reCAPTCHA and Turnstile are enabled. Only one can be active at a time. Using provider: '.$provider);
}
if ($provider === 'turnstile') {