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

History 24

  1. Gerrit Code Review pushed patch set 1 for 11.5 to change 76453 status New Under Review 11/07/22, 11:45

  2. Gerrit Code Review pushed patch set 2 for 11.5 to change 76453 11/07/22, 13:33

  3. Anonymous commented and changed status Under Review Resolved done 0 % 100 % 11/07/22, 14:30

    Applied in changeset commit:fb60c52640c1447578eecd514b8651adc84d5976.

  4. Benni Mack changed status Resolved Closed 12/06/22, 21:52