Skip to content

Commit f38e1e1

Browse files
committed
added clone_with_v2 functionality.
https://wiki.php.net/rfc/clone_with_v2
1 parent 62852ce commit f38e1e1

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

appendices/migration85/new-features.xml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,18 @@ print T1 . PHP_EOL; // Prints "0"
178178

179179
</sect3>
180180

181+
<sect3 xml:id="migration85.new-features.core.clone-function">
182+
<title>Clone function</title>
183+
184+
<simpara>
185+
The clone language construct is now a function and supports reassigning
186+
(readonly) properties during cloning via the new
187+
<property>$withProperties</property> parameter.
188+
<!-- RFC: https://wiki.php.net/rfc/clone_with_v2 -->
189+
</simpara>
190+
191+
</sect3>
192+
181193
</sect2>
182194

183195
<sect2 xml:id="migration85.new-features.curl">

0 commit comments

Comments
 (0)