Skip to content

Commit

Permalink
Add __debugInfo() magic method
Browse files Browse the repository at this point in the history
  • Loading branch information
ob-stripe committed Dec 20, 2017
1 parent ef7e0a8 commit 6367cc5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/StripeObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,12 @@ 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)
{
Expand Down

0 comments on commit 6367cc5

Please sign in to comment.