diff --git a/core/modules/layout_builder/src/Normalizer/LayoutEntityDisplayNormalizer.php b/core/modules/layout_builder/src/Normalizer/LayoutEntityDisplayNormalizer.php index ab6ae6acc0..09e80b430d 100644 --- a/core/modules/layout_builder/src/Normalizer/LayoutEntityDisplayNormalizer.php +++ b/core/modules/layout_builder/src/Normalizer/LayoutEntityDisplayNormalizer.php @@ -22,7 +22,7 @@ class LayoutEntityDisplayNormalizer extends ConfigEntityNormalizer { /** * {@inheritdoc} */ - public function normalize($object, $format = NULL, array $context = []) { + public function normalize($object, $format = NULL, array $context = []): array|string|int|float|bool|\ArrayObject|NULL { $data = parent::normalize($object, $format, $context); if (!empty($data['third_party_settings']['layout_builder']['sections'])) { $sections = &$data['third_party_settings']['layout_builder']['sections']; diff --git a/core/modules/layout_builder/src/Normalizer/SectionDataNormalizer.php b/core/modules/layout_builder/src/Normalizer/SectionDataNormalizer.php index aff09048ec..bf4a63255a 100644 --- a/core/modules/layout_builder/src/Normalizer/SectionDataNormalizer.php +++ b/core/modules/layout_builder/src/Normalizer/SectionDataNormalizer.php @@ -20,7 +20,7 @@ class SectionDataNormalizer extends TypedDataNormalizer implements DenormalizerI /** * {@inheritdoc} */ - public function normalize($object, $format = NULL, array $context = []) { + public function normalize($object, $format = NULL, array $context = []): array|string|int|float|bool|\ArrayObject|NULL { $value = parent::normalize($object, $format, $context); return $value->toArray(); }