Issue Bug Closed

#103085Deprecation strip_tags in stdWrap_stripHtml Passing null to parameter #1

Franz Holzinger 02/08/24, 20:15 updated 07/09/24, 15:33

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);
    }

Reviews 2