From a4e3e30d1f3ff8b9e2b9e08aff180bae7d8dc288 Mon Sep 17 00:00:00 2001 From: gggeek Date: Wed, 10 Dec 2014 00:49:53 +0000 Subject: [PATCH] nitpick: private => protected singleton member in base library --- lib/phpxmlrpc.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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; } } -- 2.47.0