diff --git a/core/c/Module.php b/core/c/module.php similarity index 91% rename from core/c/Module.php rename to core/c/module.php index 49b2fe5..bb74fc5 100644 --- a/core/c/Module.php +++ b/core/c/module.php @@ -30,7 +30,7 @@ public function __construct() protected function _set(string $name, $value): void { try { - $_class_properties = get_class_vars(__CLASS__); + $_class_properties = get_class_vars(get_called_class()); if (array_key_exists($name, $_class_properties)) { $this->$name = $value; @@ -49,7 +49,7 @@ protected function _set(string $name, $value): void protected function _get(string $name): mixed { try { - $_class_properties = get_class_vars(__CLASS__); + $_class_properties = get_class_vars(get_called_class()); if (array_key_exists($name, $_class_properties)) { return $this->$name;