Project

General

Profile

Actions

Bug #103085

open

Deprecation strip_tags in stdWrap_stripHtml Passing null to parameter #1

Added by Franz Holzinger 4 months ago. Updated 3 months ago.

Status:
Needs Feedback
Priority:
Should have
Assignee:
-
Category:
Frontend
Target version:
-
Start date:
2024-02-08
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
12
PHP Version:
8.3
Tags:
ContentObject
Complexity:
Is Regression:
Sprint Focus:

Description

TYPO3 core raises a deprecation notice:

(1/1) #1476107295 TYPO3\CMS\Core\Error\Exception
PHP Runtime Deprecation Notice: strip_tags(): Passing null to parameter #1 ($string) of type string is deprecated in /home/users/myuser/typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php line 2033

at strip_tags()
in /home/users/myuser/typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php line 2033


     * @return string The processed input value
     */
    public function stdWrap_stripHtml($content = '')
    {
        return strip_tags($content);
    }


Files

fehler-103085-strip_tags.txt (45.7 KB) fehler-103085-strip_tags.txt Franz Holzinger, 2024-02-09 08:06
Actions

Also available in: Atom PDF