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__;

Reply via email to