#110635Use PHP 8.5 clone-with syntax
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
-
Gerrit Code Review pushed patch set 1 for main to change 95660 status
NewUnder Review <span data-processor="relativetime" data-value="2026-09-06T08:29:44+00:00" > 09/06/26, 08:29 </span> -
Wouter Wolters commented and changed status
Under ReviewResolved done0 %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.