From fd821085bcba3e09b79945cc92c18b277c90db6a Mon Sep 17 00:00:00 2001 From: Alex Pott Date: Mon, 14 Sep 2020 12:48:21 +0100 Subject: [PATCH] Issue #3170648 by hussainweb: CKEditorPluginManager::getEnabledButtons throws warnings on PHP 8.0.0 beta3 (cherry picked from commit 7a2d7e04947ed43b21c7a8f8fd8efd992519ef05) --- core/modules/ckeditor/src/CKEditorPluginManager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules/ckeditor/src/CKEditorPluginManager.php b/core/modules/ckeditor/src/CKEditorPluginManager.php index 47fa80b06cb..e3eda0d2b1b 100644 --- a/core/modules/ckeditor/src/CKEditorPluginManager.php +++ b/core/modules/ckeditor/src/CKEditorPluginManager.php @@ -122,7 +122,7 @@ class CKEditorPluginManager extends DefaultPluginManager { $toolbar_rows = []; $settings = $editor->getSettings(); foreach ($settings['toolbar']['rows'] as $row_number => $row) { - $toolbar_rows[] = array_reduce($settings['toolbar']['rows'][$row_number], function (&$result, $button_group) { + $toolbar_rows[] = array_reduce($settings['toolbar']['rows'][$row_number], function ($result, $button_group) { return array_merge($result, $button_group['items']); }, []); }