This commit is contained in:
2021-04-25 11:27:13 +08:00
parent 77a6445eea
commit be8faa5cb0
6 changed files with 374 additions and 371 deletions
+2 -2
View File
@@ -65,7 +65,7 @@ class BaseObject implements Configure
*/
#[Pure] public static function className(): string
{
return get_called_class();
return static::class;
}
/**
@@ -80,7 +80,7 @@ class BaseObject implements Configure
if (method_exists($this, $method)) {
$this->{$method}($value);
} else {
$this->error('set ' . $name . ' not exists ' . get_called_class());
$this->error('set ' . $name . ' not exists ' . static::class);
throw new Exception('The set name ' . $name . ' not find in class ' . static::class);
}
}