Skip to content
Snippets Groups Projects
Commit 9d559bd5 authored by Christian Kuhn's avatar Christian Kuhn
Browse files

[BUGFIX] Avoid str_replace(..., null) in AbstractMenuContentObject

PHP 8.1 emits E_DEPRECATED if second argument to
str_replace() is null. Adapt a null coalescence
and add a cast to string for TSFE->page['uid']
in AbstractMenuContentObject to avoid this.

Change-Id: Iafcf027471b976b160db768b4ada4a9535190319
Resolves: #95773
Releases: master
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/71971


Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarBenni Mack <benni@typo3.org>
Tested-by: default avatarStefan Bürk <stefan@buerk.tech>
Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: default avatarBenni Mack <benni@typo3.org>
Reviewed-by: default avatarStefan Bürk <stefan@buerk.tech>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
parent 8cc1e210
Branches
Tags
No related merge requests found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment