|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #74668 Add DateTime::createFromImmutable() method
Submitted: 2017-05-28 20:55 UTC Modified: -
From: bugs dot php dot net at majkl578 dot cz Assigned:
Status: Open Package: date_time (PECL)
PHP Version: Next Minor Version OS: -
Private report: No CVE-ID:
Have you experienced this issue?
Rate the importance of this bug to you:

 [2017-05-28 20:55 UTC] bugs dot php dot net at majkl578 dot cz
Just like there is DateTimeImmutable::createFromMutable(), there should also be a DateTime::createFromImmutable() for consistency & interoperability.

Test script:
DateTime::createFromImmutable(new DateTimeImmutable);


Add a Patch

Pull Requests

Pull requests:

Add a Pull Request

PHP Copyright © 2001-2017 The PHP Group
All rights reserved.
Last updated: Tue Aug 29 15:01:52 2017 UTC