From 12e5f7f583f38183077a97e8e7c59a2f2ddfb28d Mon Sep 17 00:00:00 2001 From: Chris Rossi Date: Fri, 11 Dec 2020 14:09:27 +1030 Subject: [PATCH] Resolve Oro 4.1.10 Compatibility Issue default parameter ConfigManager::getCacheKey() is strict typehinted as a boolean in 4.1.10 onwards. This release should be backwards compatible with previous versions of Oro 4.X --- src/Form/Extension/AbstractRecaptchaTypeExtension.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } /**