svn: /phpdoc/en/trunk/language/oop5/ abstract.xml changelog.xml

From: Date: Sat, 17 Sep 2011 13:51:08 +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-8822@lists.php.net to get a copy of this message
nikic Sat, 17 Sep 2011 13:51:08 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=316911 Log: Make abstract constructor signature enforcement more clear 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 12:41:23 UTC (rev 316910) +++ phpdoc/en/trunk/language/oop5/abstract.xml 2011-09-17 13:51:08 UTC (rev 316911) @@ -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 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. + the signatures of the methods must match, i.e. the type hints and the number + of required arguments must be the same. This 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 12:41:23 UTC (rev 316910) +++ phpdoc/en/trunk/language/oop5/changelog.xml 2011-09-17 13:51:08 UTC (rev 316911) @@ -19,8 +19,8 @@ <row> <entry>5.4.0</entry> <entry> - Changed: If an abstract class defines a signature for the constructor - it will now be enforced. + Changed: If an <link linkend="language.oop5.abstract">abstract</link> class + defines a signature for the constructor it will now be enforced. </entry> </row> <row>

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