cvs: phpdoc /en/language/oop5 patterns.xml
| From: | Mehdi Achour | Date: | Wed, 19 Jan 2005 13:16:15 +0000 |
| Subject: | cvs: phpdoc /en/language/oop5 patterns.xml | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969366045@lists.php.net to get a copy of this message | ||
didou Wed Jan 19 08:16:15 2005 EDT
Modified files:
/phpdoc/en/language/oop5 patterns.xml
Log:
fix for #31608: The static declaration must be after the visibility declaration.
http://cvs.php.net/diff.php/phpdoc/en/language/oop5/patterns.xml?r1=1.3&r2=1.4&ty=u
Index: phpdoc/en/language/oop5/patterns.xml
diff -u phpdoc/en/language/oop5/patterns.xml:1.3 phpdoc/en/language/oop5/patterns.xml:1.4
--- phpdoc/en/language/oop5/patterns.xml:1.3 Sat Oct 30 00:42:07 2004
+++ phpdoc/en/language/oop5/patterns.xml Wed Jan 19 08:16:14 2005
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.3 $ -->
+<!-- $Revision: 1.4 $ -->
<sect1 id="language.oop5.patterns">
<title>Patterns</title>
<para>
@@ -72,7 +72,7 @@
class Example
{
// Hold an instance of the class
- static private $instance;
+ private static $instance;
// A private constructor
private function __construct()
@@ -81,7 +81,7 @@
}
// The singleton method
- static public function singleton()
+ public static function singleton()
{
if (!isset(self::$instance)) {
$c = __CLASS__;