PHP 8.1: Deprecated function: strtr(): Passing null to parameter #1 ($string) of type string is deprecated in Drupal\menu_block\Plugin\Block\MenuBlock->defaultConfiguration() (line 373 of MenuBlock.php

Created on 7 August 2023, over 1 year ago
Updated 14 May 2024, 6 months ago

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.

🐛 Bug report
Status

Postponed: needs info

Version

1.0

Component

Code

Created by

🇧🇪Belgium jeroendegloire

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

Comments & Activities

Production build 0.71.5 2024