diff --git a/core/modules/layout_builder/src/Entity/LayoutBuilderEntityViewDisplay.php b/core/modules/layout_builder/src/Entity/LayoutBuilderEntityViewDisplay.php index c3a50ebc23..713ed9417f 100644 --- a/core/modules/layout_builder/src/Entity/LayoutBuilderEntityViewDisplay.php +++ b/core/modules/layout_builder/src/Entity/LayoutBuilderEntityViewDisplay.php @@ -301,7 +301,7 @@ protected function getContextsForEntity(FieldableEntityInterface $entity) { * @param \Drupal\Core\Cache\RefinableCacheableDependencyInterface|null $cacheability * (optional) Refinable cacheability object, which will be populated based * on the cacheability of each section storage candidate. - * @param \Drupal\Component\Plugin\Context\ContextInterface[]|null $contexts + * @param \Drupal\Component\Plugin\Context\ContextInterface[] $contexts * (optional) The contexts which should be used to determine which storage * to return. * @@ -310,7 +310,7 @@ protected function getContextsForEntity(FieldableEntityInterface $entity) { * * @todo Deprecate this method in https://www.drupal.org/node/2986403. */ - protected function getRuntimeSections(FieldableEntityInterface $entity, RefinableCacheableDependencyInterface &$cacheability = NULL, &$contexts = NULL) { + protected function getRuntimeSections(FieldableEntityInterface $entity, RefinableCacheableDependencyInterface &$cacheability = NULL, array &$contexts = []) { if (!$cacheability) { $cacheability = new CacheableMetadata(); }