From: gggeek Date: Wed, 10 Dec 2014 00:49:53 +0000 (+0000) Subject: nitpick: private => protected singleton member in base library X-Git-Tag: 4.0.0-alpha^2~208 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=a4e3e30d1f3ff8b9e2b9e08aff180bae7d8dc288;p=plcapi.git nitpick: private => protected singleton member in base library --- diff --git a/lib/phpxmlrpc.php b/lib/phpxmlrpc.php index 01133914..23dc001c 100644 --- a/lib/phpxmlrpc.php +++ b/lib/phpxmlrpc.php @@ -151,7 +151,7 @@ class Phpxmlrpc // used to validate nesting of xmlrpc elements public $_xh = null; - private static $instance = null; + protected static $instance = null; private function __construct() { $this->xmlrpcTypes = array( @@ -187,10 +187,10 @@ class Phpxmlrpc * This class is singleton for performance reasons: this way the ASCII array needs to be done only once. */ public static function instance() { - if(Phpxmlrpc::$instance === null) { - Phpxmlrpc::$instance = new Phpxmlrpc(); + if(self::$instance === null) { + self::$instance = new self(); } - return Phpxmlrpc::$instance; + return self::$instance; } }