diff --git a/lib/StripeObject.php b/lib/StripeObject.php index 07c5dc1fc3..a5279c6411 100644 --- a/lib/StripeObject.php +++ b/lib/StripeObject.php @@ -158,6 +158,11 @@ public function &__get($k) } } + // Magic method for var_dump output. Only works with PHP >= 5.6 + public function __debugInfo() { + return $this->_values; + } + // ArrayAccess methods public function offsetSet($k, $v) {