Review 13.4 Merged

90727[BUGFIX] Fix full return type for TranslateElementPropertyViewHelper

Christian Kuhn CR +2 V +2 Easy +2 −2 updated 09/19/25, 11:49

Commit message

The return type adjustment in #107485 missed aligning the return
type of `TranslateElementPropertyViewHelper`, which passes the
return of `translationService->translateFormElementValue`. That
has 'null' as a possible outcome, which also needs to be the
return type of the `render()` method.

Unfortunately, this is not detected (covered?) by the level of our
phpstan tests because the `translateFormElementValue` has no
full return types, but only annotations, and these also missed
a `null` outcome.

Review

  • Code review CR +2 Done
    • Christian Kuhn +2
    • Jörg Bösche +1
  • Verified V +2 Done
    • Christian Kuhn +2
    • core-ci +1 CI

Issues 2

Files 2

Review log 45

  1. Christian Kuhn commented on patch set 1 09/19/25, 10:34

    Cherry Picked from branch main.
  2. core-ci voted on patch set 1 V +1 09/19/25, 10:40 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/85160

  3. Jörg Bösche voted on patch set 1 CR +1 09/19/25, 11:27

  4. Christian Kuhn voted on patch set 1 CR +2 V +2 09/19/25, 11:49

  5. Christian Kuhn merged patch set 2 09/19/25, 11:49