[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:core-ci <typo3@b13.com> Tested-by:
Oliver Bartsch <bo@cedev.de> Reviewed-by:
Oliver Bartsch <bo@cedev.de>
Please register or sign in to comment