Skip to content
Snippets Groups Projects
Commit 9efafbb0 authored by dev-rke's avatar dev-rke Committed by Oliver Bartsch
Browse files

[BUGFIX] Fix PHP deprecation on retrieving file / folder object

Since PHP 8.1, passing null to non-nullable internal function
parameters is deprecated. Therefore the str_replace() call in
ResourceFactory:retrieveFileOrFolderObject() might trigger a
PHP deprecation.

This is now fixed by adding a typecast to the input value.

Resolves: #97195
Releases: main, 11.5
Change-Id: I0ca2fc3524b77b9d6b257b4797219046aa7beb15
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/73954


Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarOliver Bartsch <bo@cedev.de>
Reviewed-by: default avatarOliver Bartsch <bo@cedev.de>
parent 02652b69
Branches
Tags
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