diff --git a/core/modules/system/system.post_update.php b/core/modules/system/system.post_update.php index cc6d229d39..ed1ab754f7 100644 --- a/core/modules/system/system.post_update.php +++ b/core/modules/system/system.post_update.php @@ -225,7 +225,7 @@ function system_post_update_entity_reference_autocomplete_match_limit(&$sandbox $callback = function (EntityDisplayInterface $display) use ($field_widget_manager) { $needs_save = FALSE; - foreach ($display->getComponents() as $field_name => $component) { + foreach ($display->getComponents() as $component) { if (empty($component['type'])) { continue; }