Review main Merged

92594[TASK] Add ArrayUtility::containsOnlyScalarValues() for array validation

Oliver Hader CR +2 V +2 Easy +44 −0 updated 01/30/26, 20:52

Commit message

This introduces a new utility method to validate that an array contains
only scalar values (strings, integers, floats, booleans) or null.

The method recursively traverses nested arrays to ensure all values at
every level satisfy this constraint. This is useful for validating data
before serialization or when ensuring arrays are safe for certain
operations that cannot handle objects, resources, or closures.

Returns `true` if all values are scalar or null, `false` otherwise.

Review

  • Code review CR +2 Done
    • Oliver Hader +2
    • Oliver Klee +1
    • Benni Mack +1
  • Verified V +2 Done
    • Oliver Hader +2
    • Oliver Klee +1
    • Benni Mack +1
    • core-ci +1 CI

Issues 1

Files 2

Review log 56

  1. Oliver Hader uploaded patch set 1 01/30/26, 17:07

  2. core-ci voted on patch set 1 V +1 01/30/26, 17:43 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/94690

  3. Oliver Klee voted on patch set 1 CR +1 V +1 01/30/26, 17:44

  4. Benni Mack voted on patch set 1 CR +1 V +1 01/30/26, 18:16

  5. Oliver Hader voted on patch set 1 CR +2 V +2 01/30/26, 20:52

  6. Oliver Hader merged patch set 2 01/30/26, 20:52