svn: /phpdoc/en/trunk/language/oop5/ abstract.xml
| From: | Nikita Popov | Date: | Sat, 17 Sep 2011 09:55:04 +0000 |
| Subject: | svn: /phpdoc/en/trunk/language/oop5/ abstract.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-8818@lists.php.net to get a copy of this message | ||
nikic Sat, 17 Sep 2011 09:55:04 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=316904
Log:
Fix 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
Modified: phpdoc/en/trunk/language/oop5/abstract.xml
===================================================================
--- phpdoc/en/trunk/language/oop5/abstract.xml 2011-09-17 07:34:25 UTC (rev 316903)
+++ phpdoc/en/trunk/language/oop5/abstract.xml 2011-09-17 09:55:04 UTC (rev 316904)
@@ -17,7 +17,10 @@
these methods must be defined with the same (or a less restricted)
<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.
+ 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.
</para>
<example>