Skip to content

Commit

Permalink
Merge pull request #19 from alllinux/v1.0.1
Browse files Browse the repository at this point in the history
Changed Class reference and renamed Module.php file
  • Loading branch information
alllinux authored Mar 27, 2024
2 parents f27267c + bef8735 commit 267cfca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/c/Module.php → core/c/module.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit 267cfca

Please sign in to comment.