diff --git a/src/lib/Form/Type/Content/ContentFieldType.php b/src/lib/Form/Type/Content/ContentFieldType.php index 23cfd66..13685dd 100644 --- a/src/lib/Form/Type/Content/ContentFieldType.php +++ b/src/lib/Form/Type/Content/ContentFieldType.php @@ -50,7 +50,7 @@ public function configureOptions(OptionsResolver $resolver) { $resolver ->setRequired(['languageCode', 'mainLanguageCode', 'struct']) - ->setDefault('struct', static function (Options $options, ?ContentStruct $value) { + ->setDefault('struct', static function (Options $options, ?ContentStruct $value): ?ContentStruct { if ($value !== null) { return $value; }