From c6667bf1e2bbcc2dc6cbbff71b3b58cc6e05a0fd Mon Sep 17 00:00:00 2001 From: michael staatz Date: Sat, 29 Nov 2025 06:44:25 +0100 Subject: [PATCH] [TASK] Fix nullable type declaration for $site in Configuration (PHP 8.4) The constructor parameter `$site` in `StudioMitte\FriendlyCaptcha\Configuration` was implicitly nullable, which triggers a deprecation warning in PHP 8.4. This change explicitly declares the parameter as nullable (`?string`) to ensure compatibility with PHP 8.4+. --- Classes/Configuration.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/Configuration.php b/Classes/Configuration.php index 939064f..4494bad 100644 --- a/Classes/Configuration.php +++ b/Classes/Configuration.php @@ -20,7 +20,7 @@ class Configuration protected string $jsPath = ''; protected bool $skipDevValidation = false; - public function __construct(Site $site = null) + public function __construct(?Site $site = null) { if ($site === null) { $site = $GLOBALS['TYPO3_REQUEST']->getAttribute('site');