Skip to content

Commit

Permalink
[TASK] Proper type fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
georgringer authored Dec 18, 2023
1 parent ad22bcf commit dde7db9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Domain/Validator/ForeignValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit dde7db9

Please sign in to comment.