Review 12.4 Merged

81895[BUGFIX] Avoid strict type exception in Import

Christian Kuhn CR +2 V +2 Easy +2 −2 updated 11/22/23, 21:40

Commit message

$tokenizedContent could be null and would already cause an undefined
array key warning. When passed to the strlen method, this even causes
an exception.

This patch adds a null coalesce operator with an empty string as default
and replaces the odd strlen bool expression with a strict comparison to
an empty string.

Review

  • Code review CR +2 Done
    • Christian Kuhn +2
  • Verified V +2 Done
    • Christian Kuhn +2
    • core-ci +1 CI

Issues 1

Files 1

Review log 34

  1. Christian Kuhn commented on patch set 1 11/22/23, 21:31

    Cherry Picked from branch main.
  2. core-ci voted on patch set 1 V +1 11/22/23, 21:39 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/49562

  3. Christian Kuhn voted on patch set 1 CR +2 V +2 11/22/23, 21:40

  4. Christian Kuhn merged patch set 2 11/22/23, 21:40