PHP 7.4 Notice: Trying to access array offset on value of type bool in menu_block_tree_output()
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3182751. --> Reported by: [idebr](https://www.drupal.org/user/1879760) >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>The generates a notice that is similar to an issue being fixed in Drupal Core, see <span class="drupalorg-gitlab-issue-link project-issue-status-info project-issue-status-7"><a href="https://www.drupal.org/project/drupal/issues/3155357" title="Status: Closed (fixed)">#3155357: menu tree output() notice after upgrade to php 7.4 with core 7.72</a></span></p> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <p>Implement a sanity check similar to the fix in Drupal Core, see <span class="drupalorg-gitlab-issue-link project-issue-status-info project-issue-status-7"><a href="https://www.drupal.org/project/drupal/issues/3155357" title="Status: Closed (fixed)">#3155357: menu tree output() notice after upgrade to php 7.4 with core 7.72</a></span></p> <h3 id="summary-remaining-tasks">Remaining tasks</h3> <ol> <li>Write a patch</li> <li>Review</li> <li>Commit</li> </ol> <h3 id="summary-ui-changes">User interface changes</h3> <p>None.</p> <h3 id="summary-api-changes">API changes</h3> <p>None.</p> <h3 id="summary-data-model-changes">Data model changes</h3> <p>None.</p>
issue