Deprecated function: Creation of dynamic property

Created on 18 September 2024, 7 months ago

Problem/Motivation

Deprecated function: Creation of dynamic property Drupal\menu_block\Plugin\Block\MenuBlock::$tree is deprecated in Drupal\menu_block\Plugin\Block\MenuBlock->build() (line 348 of /var/www/html/docroot/modules/contrib/menu_block/src/Plugin/Block/MenuBlock.php)

Steps to reproduce

Upgrade to php8.2 you will see these deprecated warning on most of the pages.

🐛 Bug report
Status

Active

Version

1.10

Component

Code

Created by

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

Comments & Activities

  • Issue created by @dhavalpanchal
  • Status changed to Needs review 7 months ago
  • I have created patch for deprecated warnings in php8.2 version.

  • 🇵🇭Philippines cleavinjosh

    Hi @dhavalpanchal,

    Is the issue only replicable in the PHP 8.2 version? My PHP version is 8.3.6 and I am not encountering the issue.

    Please check and advise.

    Thank you.

  • 🇩🇪Germany Anybody Porta Westfalica

    Could you please provide the fix as MR? Anyone else running into this in latest version? Please note: You selected 8.10 - an older version!

  • First commit to issue fork.
  • 🇮🇳India atul_ghate

    I am unable to reproduce this issue, and the patch is not being applied for the 8.x-1.x branch. My apologies for creating a issue fork by mistake.

  • Status changed to Closed: cannot reproduce about 2 months ago
  • 🇨🇦Canada joelpittet Vancouver

    I don't see the $tree property any longer in the code.

Production build 0.71.5 2024