From ef4d691561b31b7463de6cb14aa40a2f51117215 Mon Sep 17 00:00:00 2001 From: Aashan Ghimire Date: Tue, 4 Aug 2020 18:10:19 +0545 Subject: [PATCH] make constructor protected so that the class actually behaves like a singleton --- includes/class-sikshya.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/class-sikshya.php b/includes/class-sikshya.php index c791efd9..fd707e67 100644 --- a/includes/class-sikshya.php +++ b/includes/class-sikshya.php @@ -195,7 +195,7 @@ public function __get($key) /** * Sikshya Constructor. */ - public function __construct() + protected function __construct() { $this->define_constants(); $this->includes();