From 746950a8e0568e870009be9990bf8fad674ef418 Mon Sep 17 00:00:00 2001 From: pawelpawlik Date: Tue, 19 Nov 2024 12:06:56 +0100 Subject: [PATCH] IBX-8711 CR fixes, added return type --- src/lib/Form/Type/Content/ContentFieldType.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }