diff --git a/src/ActionDescriptor.php b/src/ActionDescriptor.php index 2258938..d3e7c33 100644 --- a/src/ActionDescriptor.php +++ b/src/ActionDescriptor.php @@ -57,6 +57,6 @@ class ActionDescriptor */ public function dump(): array { - return get_class_vars(__CLASS__) ?: []; + return get_object_vars($this); } } diff --git a/src/ValueDescriptor.php b/src/ValueDescriptor.php index b1c2034..bc51f59 100644 --- a/src/ValueDescriptor.php +++ b/src/ValueDescriptor.php @@ -43,6 +43,6 @@ class ValueDescriptor */ public function dump(): array { - return get_class_vars(__CLASS__) ?: []; + return get_object_vars($this); } }