D10 + PHP Warning $expand

Created on 26 October 2023, about 1 year ago

Problem/Motivation

Upon upgrading to D10 there seems to be a PHP warning now popping up regarding an undefined variable $expand;

Warning: Undefined variable $expand in /code/web/modules/contrib/menu_block/src/Plugin/Block/MenuBlock.php on line 278

And the offending code;

if ($expand) {
  $parameters->expandedParents = [];
}

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Closed: duplicate

Version

1.0

Component

Code

Created by

🇨🇦Canada AaronChristian Kelowna, BC

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024