Review main Merged

91907[FEATURE] Allow number of decimals in `stdWrap.bytes` function

Elias Häußler CR +2 V +2 Normal +98 −39 updated 12/02/25, 13:43

Commit message

The TypoScript function `stdWrap.bytes` now accepts an additional
configuration parameter `decimals`. It allows to explicitly define the
number of decimals in the resulting number representation. By default,
the number of decimals is derived from the formatted size.

In addition, the consumed PHP function `GU::formatSize()` is extended
as well. The additional parameter `$decimals` is added and defaults to
`null`, which results in the same behavior as for the TypoScript
function `stdWrap.bytes`.

Review

  • Code review CR +2 Done
    • Benni Mack +2
    • Simon Schaufelberger +1
  • Verified V +2 Done
    • Benni Mack +2
    • Simon Schaufelberger +1
    • core-ci +1 CI

Issues 1

Files 4

Review log 67

  1. Elias Häußler uploaded patch set 1 11/27/25, 10:46

  2. core-ci voted on patch set 1 V +1 11/27/25, 10:55 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/91089

  3. Simon Schaufelberger voted on patch set 1 CR +1 V +1 11/29/25, 11:47

  4. Benni Mack voted on patch set 1 CR +1 12/01/25, 12:04

  5. Benni Mack voted on patch set 1 CR -2 12/01/25, 15:16

  6. Benni Mack voted on patch set 1 CR +2 V +2 12/02/25, 13:43

  7. Benni Mack merged patch set 2 12/02/25, 13:43