[prev in list] [next in list] [prev in thread] [next in thread]
List: php-doc-cvs
Subject: [DOC-CVS] =?utf-8?q?svn:_/phpdoc/en/trunk/reference/datetime/dateperiod/_construct.xml?=
From: Peter_Cowburn <salathe () php ! net>
Date: 2014-11-18 14:39:53
Message-ID: svn-salathe-1416321593-335194-1699549254 () svn ! php ! net
[Download RAW message or body]
salathe Tue, 18 Nov 2014 14:39:53 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=335194
Log:
DatePeriod hints DateTimeInterface (doc bug #68444)
Bug: https://bugs.php.net/68444 (Open) Change in method signature since 5.5
Changed paths:
U phpdoc/en/trunk/reference/datetime/dateperiod/construct.xml
Modified: phpdoc/en/trunk/reference/datetime/dateperiod/construct.xml
===================================================================
--- phpdoc/en/trunk/reference/datetime/dateperiod/construct.xml 2014-11-18 11:36:04 UTC (rev 335193)
+++ phpdoc/en/trunk/reference/datetime/dateperiod/construct.xml 2014-11-18 14:39:53 UTC (rev 335194)
@@ -11,16 +11,16 @@
&reftitle.description;
<constructorsynopsis role="oop">
<modifier>public</modifier> <methodname>DatePeriod::__construct</methodname>
- <methodparam><type>DateTime</type><parameter>start</parameter></methodparam>
+ <methodparam><type>DateTimeInterface</type><parameter>start</parameter></methodparam>
<methodparam><type>DateInterval</type><parameter>interval</parameter></methodparam>
<methodparam><type>int</type><parameter>recurrences</parameter></methodparam>
<methodparam choice="opt"><type>int</type><parameter>options</parameter></methodparam>
</constructorsynopsis>
<constructorsynopsis role="oop">
<modifier>public</modifier> <methodname>DatePeriod::__construct</methodname>
- <methodparam><type>DateTime</type><parameter>start</parameter></methodparam>
+ <methodparam><type>DateTimeInterface</type><parameter>start</parameter></methodparam>
<methodparam><type>DateInterval</type><parameter>interval</parameter></methodparam>
- <methodparam><type>DateTime</type><parameter>end</parameter></methodparam>
+ <methodparam><type>DateTimeInterface</type><parameter>end</parameter></methodparam>
<methodparam choice="opt"><type>int</type><parameter>options</parameter></methodparam>
</constructorsynopsis>
<constructorsynopsis role="oop">
@@ -91,6 +91,40 @@
</para>
</refsect1>
+ <refsect1 role="changelog">
+ &reftitle.changelog;
+ <para>
+ <informaltable>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>&Version;</entry>
+ <entry>&Description;</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>5.5.8</entry>
+ <entry>
+ <parameter>end</parameter> type changed to
+ <interfacename>DateTimeImmutable</interfacename>.
+ Previously, <classname>DateTime</classname>.
+ </entry>
+ </row>
+ <row>
+ <entry>5.5.0</entry>
+ <entry>
+ <parameter>start</parameter> type changed to
+ <interfacename>DateTimeImmutable</interfacename>.
+ Previously, <classname>DateTime</classname>.
+ </entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </informaltable>
+ </para>
+ </refsect1>
+
<refsect1 role="examples">
&reftitle.examples;
<para>
--
PHP Documentation Commits Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic