After updating our PHP version from 7.4 to 8.1 we noticed this PHP notice on every page request for every menu_block.
Seems a very easy fix though.

Pleaser review the attached patch.

CommentFileSizeAuthor
php8.1notice.patch671 bytesweseze

Comments

weseze created an issue. See original summary.

renatog’s picture

Status: Needs review » Reviewed & tested by the community

Seems good to me

  • joelpittet committed aafb395 on 8.x-1.x
    Issue #3318627 by weseze, RenatoG: (PHP8.1) Prevent notice: "Deprecated...
joelpittet’s picture

Version: 8.x-1.8 » 8.x-1.x-dev
Status: Reviewed & tested by the community » Fixed

Thank you both

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.