Doc #73287 [Opn->Ver]: Clone chaining feature
| From: | cmb@php.net | Date: | Tue, 11 Oct 2016 12:36:58 +0000 |
| Subject: | Doc #73287 [Opn->Ver]: Clone chaining feature | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-14006@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=73287&edit=1
ID: 73287
Updated by: cmb@php.net
Reported by: elpiel93 at gmail dot com
Summary: Clone chaining feature
-Status: Open
+Status: Verified
Type: Documentation Problem
Package: Class/Object related
Operating System: Ubuntu 16.04
PHP Version: 7.0.11
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
Previous Comments:
------------------------------------------------------------------------
[2016-10-11 08:15:33] elpiel93 at gmail dot com
Description:
------------
---
From manual page: http://www.php.net/language.oop5.cloning
---
Can you add information for PHP 7 new features and the manual page for cloning that chaining clone
is possible in v7.
Test script:
---------------
$dateTime = new DateTime();
$cloneAndFormat = (clone $dateTime)->format('Y'); // this was not possible prior PHP 7
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=73287&edit=1