Re: [RFC] Clone with v2

From: Date: Mon, 19 May 2025 10:48:28 +0000
Subject: Re: [RFC] Clone with v2
References: 1  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
Hey everyone,

Thank you for the participation so far, since the start of the discussion,
from feedback on and off list, I've added a couple of examples:

-
https://wiki.php.net/rfc/clone_with_v2#:~:text=dynamic%20property%20creation%20follows%20established%20PHP%20rules
- https://wiki.php.net/rfc/clone_with_v2#:~:text=Positional%20parameters
- We removed the behavior of __clone locking readonly properties when the
function updates them for forward compatibility concerns raised in
https://externals.io/message/127353#127390
- Updated https://wiki.php.net/rfc/clone_with_v2#design_goals
mentioning
there that consider touching __clone or adding parameters a non-goal due to
complexity and BC implications.
- Updated the property name of the varadic parameter from
$updatedProperties to $withProperties

We're still looking for feedback on the ...variadic approach to the Syntax:
https://wiki.php.net/rfc/clone_with_v2#open_issues,
as we only got one
reply so far on the topic.

Also thanks to theodorejb for touching up phrasing, correcting spelling
mistakes and so on: https://wiki.php.net/rfc/clone_with_v2?do=revisions

Kind Regards,
Volker

-- 
Volker Dusch
Head of Engineering
Tideways GmbH
Königswinterer Str. 116
53227 Bonn
https://tideways.io/imprint

Sitz der Gesellschaft: Bonn
Geschäftsführer: Benjamin Außenhofer (geb. Eberlei)
Registergericht: Amtsgericht Bonn, HRB 22127


Thread (43 messages)

« previous php.internals (#127397) next »