Req #74668 [Com]: Add DateTime::createFromImmutable() method
| From: | weirdan at gmail dot com | Date: | Wed, 16 Jan 2019 14:08:44 +0000 |
| Subject: | Req #74668 [Com]: Add DateTime::createFromImmutable() method | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-218997@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=74668&edit=1
ID: 74668
Comment by: weirdan at gmail dot com
Reported by: bugs dot php dot net at majkl578 dot cz
Summary: Add DateTime::createFromImmutable() method
Status: Open
Type: Feature/Change Request
Package: Date/time related
Operating System: -
PHP Version: Next Minor Version
Block user comment: N
Private report: N
New Comment:
Implemented, merged and released in 7.3. Should probably be closed then? Though documentation is
still missing.
Previous Comments:
------------------------------------------------------------------------
[2017-05-28 20:55:15] bugs dot php dot net at majkl578 dot cz
Description:
------------
Just like there is DateTimeImmutable::createFromMutable(), there should also be a
DateTime::createFromImmutable() for consistency & interoperability.
Test script:
---------------
DateTime::createFromImmutable(new DateTimeImmutable);
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=74668&edit=1