Review 11.5 Merged

75217[BUGFIX] Fix PHP 8 array access in BackendUtility

Christian Kuhn CR +2 V +2 Easy +1 −1 updated 07/21/22, 08:58

Commit message

When the TCA colon feature for ['ctrl']['type'] is
used in inline parent child relations, the target
record may not yet be persisted and getRecord()
returns null.

This triggers a PHP 8 array warning.
Sanitize this access.

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 07/21/22, 08:48

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

  3. Christian Kuhn voted on patch set 1 V +2 CR +2 07/21/22, 08:58

  4. Christian Kuhn merged patch set 2 07/21/22, 08:58