Doc #77671 [Opn->Csd]: DateTimeZone->getOffset should take DateTimeInterface
| From: | salathe@php.net | Date: | Tue, 26 Feb 2019 20:39:29 +0000 |
| Subject: | Doc #77671 [Opn->Csd]: DateTimeZone->getOffset should take DateTimeInterface | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-16431@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=77671&edit=1
ID: 77671
Updated by: salathe@php.net
Reported by: sites+php at dan dot cx
Summary: DateTimeZone->getOffset should take
DateTimeInterface
-Status: Open
+Status: Closed
Type: Documentation Problem
Package: Date/time related
Operating System: N/A
PHP Version: Irrelevant
-Assigned To:
+Assigned To: salathe
Block user comment: N
Private report: N
New Comment:
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.
Thank you for the report, and for helping us make our documentation better.
Previous Comments:
------------------------------------------------------------------------
[2019-02-26 20:38:23] salathe@php.net
Automatic comment from SVN on behalf of salathe
Revision: http://svn.php.net/viewvc/?view=revision&revision=346912
Log: update type for DateTimeZone::getOffset's $datetime parameter (doc #77671)
------------------------------------------------------------------------
[2019-02-26 19:48:55] sites+php at dan dot cx
Description:
------------
---
From manual page: https://php.net/datetimezone.getoffset
---
The documentation for DateTimeZone getOffset says that it takes an instance of DateTime. However, it
needs to be updated as per the changes in bug #68062, as it can take a DateTimeImmutable too: https://3v4l.org/ChCR5.
The documentation should be updated to reflect that it actually takes "DateTimeInterface"
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=77671&edit=1