Doc #70265 [Ver->Csd]: Wrong name of DateTimeImmutable::__construct's 2nd param
| From: | cmb@php.net | Date: | Fri, 14 Aug 2015 12:49:58 +0000 |
| Subject: | Doc #70265 [Ver->Csd]: Wrong name of DateTimeImmutable::__construct's 2nd param | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-12609@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=70265&edit=1
ID: 70265
Updated by: cmb@php.net
Reported by: ocramius at gmail dot com
Summary: Wrong name of DateTimeImmutable::__construct's 2nd
param
-Status: Verified
+Status: Closed
Type: Documentation Problem
Package: Date/time related
PHP Version: 7.0.0beta3
Assigned To: cmb
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:
------------------------------------------------------------------------
[2015-08-14 12:49:33] cmb@php.net
Automatic comment from SVN on behalf of cmb
Revision: http://svn.php.net/viewvc/?view=revision&revision=337451
Log: fixed wrong parameter name (Reflection!) (fixes #70265)
------------------------------------------------------------------------
[2015-08-14 08:19:16] ocramius at gmail dot com
Good point! I guess it is a documentation change issue then? The parameter has always been
documented as
timezone, as far as I can see.
------------------------------------------------------------------------
[2015-08-14 07:35:08] requinix@php.net
Sure you're not looking at the HHVM output? They named it "timezone" but PHP has
always called it "object".
------------------------------------------------------------------------
[2015-08-14 07:25:44] ocramius at gmail dot com
Description:
------------
As per http://3v4l.org/6Wc78,
DateTimeImmutable::__construct.timezone was renamed to DateTimeImmutable::__construct.object
Test script:
---------------
<?php
echo (new ReflectionMethod('DateTimeImmutable',
'__construct'))->getParameters()[1]->getName();
Expected result:
----------------
timezone
Actual result:
--------------
object
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=70265&edit=1