diff --git a/core/modules/views/src/ViewsConfigUpdater.php b/core/modules/views/src/ViewsConfigUpdater.php index 3ac1c81c66..edb73c0a73 100644 --- a/core/modules/views/src/ViewsConfigUpdater.php +++ b/core/modules/views/src/ViewsConfigUpdater.php @@ -123,7 +123,7 @@ public function setDeprecationsEnabled($enabled) { * Whether the view was updated. */ public function updateAll(ViewEntityInterface $view) { - return $this->processDisplayHandlers($view, FALSE, function (&$handler, $handler_type, $key, $display_id) use ($view) { + return $this->processDisplayHandlers($view, FALSE, function (&$handler, $handler_type, $key, $display_id) { $changed = FALSE; if ($this->processSortFieldIdentifierUpdateHandler($handler, $handler_type)) { $changed = TRUE;