From 7b3d3946e5fbae38398eb0b50bd0fe652a5bb0f1 Mon Sep 17 00:00:00 2001 From: Georg Ringer Date: Mon, 16 Dec 2024 06:59:09 +0100 Subject: [PATCH] [TASK] Add typecast --- Classes/Configuration.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/Configuration.php b/Classes/Configuration.php index a757970..34bd68a 100644 --- a/Classes/Configuration.php +++ b/Classes/Configuration.php @@ -31,7 +31,7 @@ public function __construct(Site $site = null) $siteConfiguration = $site->getConfiguration(); $this->siteKey = trim($siteConfiguration['friendlycaptcha_site_key'] ?? ''); $this->siteSecretKey = trim($siteConfiguration['friendlycaptcha_secret_key'] ?? ''); - $this->useEuPuzzleEndpoint = $siteConfiguration['friendlycaptcha_use_eu_puzzle_endpoint'] ?? false; + $this->useEuPuzzleEndpoint = (bool)($siteConfiguration['friendlycaptcha_use_eu_puzzle_endpoint'] ?? false); $this->verifyUrl = trim($siteConfiguration['friendlycaptcha_verify_url'] ?? ''); $this->jsPath = trim($siteConfiguration['friendlycaptcha_js_path'] ?? ''); $this->skipDevValidation = (bool)($siteConfiguration['friendlycaptcha_skip_dev_validation'] ?? false);