Unverified Commit fd821085 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3170648 by hussainweb: CKEditorPluginManager::getEnabledButtons throws...

Issue #3170648 by hussainweb: CKEditorPluginManager::getEnabledButtons throws warnings on PHP 8.0.0 beta3

(cherry picked from commit 7a2d7e04)
parent 3cd84c3f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -122,7 +122,7 @@ public static function getEnabledButtons(Editor $editor) {
    $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']);
      }, []);
    }