Req->Doc #70265 [Opn->Ver]: Wrong name of DateTimeImmutable::__construct's 2nd param

From: Date: Fri, 14 Aug 2015 12:47:25 +0000
Subject: Req->Doc #70265 [Opn->Ver]: Wrong name of DateTimeImmutable::__construct's 2nd param
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-12608@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: Rename DateTimeImmutable::__construct's object param to "timezone" +Summary: Wrong name of DateTimeImmutable::__construct's 2nd param -Status: Open +Status: Verified -Type: Feature/Change Request +Type: Documentation Problem Package: Date/time related PHP Version: 7.0.0beta3 -Assigned To: +Assigned To: cmb Block user comment: N Private report: N Previous Comments: ------------------------------------------------------------------------ [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

« previous php.doc.bugs (#12608) next »