Skip to content

Commit

Permalink
Merge pull request #403 from stripe/ob-debug-info
Browse files Browse the repository at this point in the history
Add __debugInfo() magic method
  • Loading branch information
brandur-stripe authored Dec 20, 2017
2 parents ef7e0a8 + 6367cc5 commit dc8d5ba
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 dc8d5ba

Please sign in to comment.