Issue Task Resolved

#110635Use PHP 8.5 clone-with syntax

Wouter Wolters 09/06/26, 08:29 updated 09/30/26, 09:25

Description

TYPO3 now requires PHP 8.5, which introduces the ability to clone an object
and replace selected properties in a single clone() expression.

Several immutable objects and builders still clone an instance, assign one or
more properties in separate statements, and then return the cloned instance.
Replace these straightforward patterns with PHP 8.5 clone-with syntax.

Complex cloning paths involving array mutations, branching, or method calls
should remain unchanged.

Reviews 1

History 12

  1. Wouter Wolters commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2026-09-30T09:25:11+00:00" > 09/30/26, 09:25 </span>

    Applied in changeset commit:6633e6d544cc6eab99a475f6cd2c3911bd5448f5.