svn: /phpdoc/en/trunk/reference/datetime/ datetimeinterface.xml

From: Date: Tue, 21 Jul 2015 12:19:50 +0000
Subject: svn: /phpdoc/en/trunk/reference/datetime/ datetimeinterface.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-13475@lists.php.net to get a copy of this message
cmb Tue, 21 Jul 2015 12:19:50 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=337210 Log: documented that DateTimeInterface is not implementable in userland (see <http://news.php.net/php.internals/87217>) Changed paths: U phpdoc/en/trunk/reference/datetime/datetimeinterface.xml Modified: phpdoc/en/trunk/reference/datetime/datetimeinterface.xml =================================================================== --- phpdoc/en/trunk/reference/datetime/datetimeinterface.xml 2015-07-20 19:53:20 UTC (rev 337209) +++ phpdoc/en/trunk/reference/datetime/datetimeinterface.xml 2015-07-21 12:19:50 UTC (rev 337210) @@ -12,7 +12,9 @@ <section xml:id="datetimeinterface.intro"> &reftitle.intro; <para> - + DateTimeInterface is meant so that both DateTime and DateTimeImmutable can + be type hinted for. It is not possible to implement this interface with + userland classes. </para> </section> <!-- }}} --> @@ -39,6 +41,32 @@ </section> + <section role="changelog" xml:id="datetimeinterface.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> + Trying to implement <classname>DateTimeInterface</classname> raises a + fatal error now. Formerly implementing the interface didn't raise an + error, but the behavior was erroneous. + </entry> + </row> + </tbody> + </tgroup> + </informaltable> + </para> + </section><!-- }}} --> + </partintro> &reference.datetime.entities.datetimeinterface;

« previous php.doc.cvs (#13475) next »