svn: /phpdoc/en/trunk/language/oop5/ abstract.xml changelog.xml
| From: | Nikita Popov | Date: | Sat, 17 Sep 2011 10:01:16 +0000 |
| Subject: | svn: /phpdoc/en/trunk/language/oop5/ abstract.xml changelog.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-8819@lists.php.net to get a copy of this message | ||
nikic Sat, 17 Sep 2011 10:01:16 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=316905
Log:
Followup for Doc Bug #55085: Undocumented BC break with changing __construct() signature
Bug: https://bugs.php.net/55085 (Open) Undocumented BC
break with changing __construct() signature
Changed paths:
U phpdoc/en/trunk/language/oop5/abstract.xml
U phpdoc/en/trunk/language/oop5/changelog.xml
Modified: phpdoc/en/trunk/language/oop5/abstract.xml
===================================================================
--- phpdoc/en/trunk/language/oop5/abstract.xml 2011-09-17 09:55:04 UTC (rev 316904)
+++ phpdoc/en/trunk/language/oop5/abstract.xml 2011-09-17 10:01:16 UTC (rev 316905)
@@ -18,9 +18,9 @@
<link linkend="language.oop5.visibility">visibility</link>. For example,
if the abstract method is defined as protected, the function implementation
must be defined as either protected or public, but not private. Furthermore
- the signatures of the methods must match, i.e. type hints and default values
- must be the same. The last restriction also applies to constructors as of
- PHP 5.4. Before 5.4 constructor signatures could differ.
+ the signatures of the methods must match, i.e. type hints and optional
+ arguments must be the same. The last restriction also applies to constructors
+ as of PHP 5.4. Before 5.4 constructor signatures could differ.
</para>
<example>
Modified: phpdoc/en/trunk/language/oop5/changelog.xml
===================================================================
--- phpdoc/en/trunk/language/oop5/changelog.xml 2011-09-17 09:55:04 UTC (rev 316904)
+++ phpdoc/en/trunk/language/oop5/changelog.xml 2011-09-17 10:01:16 UTC (rev 316905)
@@ -17,6 +17,13 @@
</thead>
<tbody>
<row>
+ <entry>5.4.0</entry>
+ <entry>
+ Changed: If an abstract class defines a signature for the constructor
+ it will now be enforced.
+ </entry>
+ </row>
+ <row>
<entry>5.3.3</entry>
<entry>
Changed: Methods with the same name as the last element of