php.net |  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: 2019-01-16 15:44 UTC
From: bugs dot php dot net at majkl578 dot cz Assigned: nikic (profile)
Status: Closed Package: Date/time related
PHP Version: Next Minor Version OS: -
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: bugs dot php dot net at majkl578 dot cz
New email:
PHP Version: OS:

 

 [2017-05-28 20:55 UTC] 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);


Patches

Add a Patch

Pull Requests

Pull requests:

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-10-25 02:03 UTC] kalle@php.net
-Package: date_time +Package: Date/time related
 [2019-01-16 14:08 UTC] weirdan at gmail dot com
Implemented, merged and released in 7.3. Should probably be closed then? Though documentation is still missing.
 [2019-01-16 15:44 UTC] nikic@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: nikic
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 16:01:28 2024 UTC