Issue Bug Closed

#99013prevent passing null to mb_strtolower in f:format.case VH

Achim Fritz 11/07/22, 11:44 updated 12/06/22, 21:52

Description

Pass a null value to the f:format.case VH, e.g.

{nullVariable -> f:format.case(mode: 'lower')}

triggers

PHP Runtime Deprecation Notice: mb_strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/web/typo3/sysext/fluid/Classes/ViewHelpers/Format/CaseViewHelper.php line 142

(which throws an Exception if

$GLOBALS['TYPO3_CONF_VARS']['SYS']['exceptionalErrors'] = 32767;

is set)

(only for TYPO3 v11 + PHP 8.1)

Reviews 1