From 820972556fe027fc721cbadd48d920bce94e9ffd Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Sat, 29 Apr 2023 10:50:58 +0200 Subject: [PATCH] fix dump on dynamic class --- src/Settings.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Settings.php b/src/Settings.php index e2af96c..c0ab78f 100644 --- a/src/Settings.php +++ b/src/Settings.php @@ -107,6 +107,6 @@ class Settings */ public function listSettings(): array { - return array_keys(get_class_vars(Settings::class)); + return array_diff_key(get_object_vars($this), ['settings'=>'']); } }