Commit aafb3953 authored by Wesley Sandra's avatar Wesley Sandra Committed by Joël Pittet
Browse files

Issue #3318627 by weseze, RenatoG: (PHP8.1) Prevent notice: "Deprecated...

Issue #3318627 by weseze, RenatoG: (PHP8.1) Prevent notice: "Deprecated function: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in Drupal\menu_block\Plugin\Block\MenuBlock->build() (line 262) ..."
parent 2068509a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -231,7 +231,7 @@ class MenuBlock extends SystemMenuBlock {
    // 'expand' config property in case the menu block's configuration has not
    // yet been updated.
    $expand_all_items = $this->configuration['expand'] ?? $this->configuration['expand_all_items'];
    $parent = $this->configuration['parent'];
    $parent = $this->configuration['parent'] ?? '';
    $follow = $this->configuration['follow'];
    $follow_parent = $this->configuration['follow_parent'];
    $following = FALSE;