fix dump on dynamic class

This commit is contained in:
Jean-Christian Denis 2023-04-29 10:50:30 +02:00
parent 3904150146
commit 4c01df6338
Signed by: JcDenis
GPG key ID: 1B5B8C5B90B6C951

View file

@ -72,9 +72,7 @@ class Settings
*/
public function dump(): array
{
$vars = get_class_vars(__CLASS__);
return $vars ? $vars : [];
return get_object_vars($this);
}
/**