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 e22d646
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/StripeObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit e22d646

Please sign in to comment.