改名
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user