fix dump on dynamic class
This commit is contained in:
parent
3904150146
commit
4c01df6338
1 changed files with 1 additions and 3 deletions
|
@ -72,9 +72,7 @@ class Settings
|
||||||
*/
|
*/
|
||||||
public function dump(): array
|
public function dump(): array
|
||||||
{
|
{
|
||||||
$vars = get_class_vars(__CLASS__);
|
return get_object_vars($this);
|
||||||
|
|
||||||
return $vars ? $vars : [];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue