From dde7db9ec7617f4c4ba35fbcdad9c9a3f6d67d27 Mon Sep 17 00:00:00 2001 From: Georg Ringer Date: Mon, 18 Dec 2023 08:39:15 +0100 Subject: [PATCH] [TASK] Proper type fallback --- Classes/Domain/Validator/ForeignValidator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/Domain/Validator/ForeignValidator.php b/Classes/Domain/Validator/ForeignValidator.php index c85fb763b..5482c0032 100644 --- a/Classes/Domain/Validator/ForeignValidator.php +++ b/Classes/Domain/Validator/ForeignValidator.php @@ -40,7 +40,7 @@ public function isValid($mail) if (is_subclass_of($validatorConf['class'], $this->validatorInterface)) { /** @var AbstractValidator $validator */ $validator = GeneralUtility::makeInstance($validatorConf['class']); - $validator->setConfiguration((array)$validatorConf['config']); + $validator->setConfiguration((array)(($validatorConf['config'] ?? [])); $validator->initialize(); /** @var Result $result */ $this->addErrors($validator->validate($mail));