diff --git a/src/Form/Extension/AbstractRecaptchaTypeExtension.php b/src/Form/Extension/AbstractRecaptchaTypeExtension.php index a6bd516..310c6db 100644 --- a/src/Form/Extension/AbstractRecaptchaTypeExtension.php +++ b/src/Form/Extension/AbstractRecaptchaTypeExtension.php @@ -74,9 +74,9 @@ protected function getSize() * @param $default * @return mixed */ - protected function getConfiguration(string $key, $default) + protected function getConfiguration(string $key, $default = null) { - return $this->configManager->get(Configuration::getConfigKeyByName($key), $default); + return $this->configManager->get(Configuration::getConfigKeyByName($key)) ?? $default; } /**