Skip to content

Commit

Permalink
SubscriptionAddon: fix call to undefined method Recurly_SubscriptionA…
Browse files Browse the repository at this point in the history
…ddOn::__valuesString()
  • Loading branch information
glaubinix committed May 9, 2024
1 parent c8e9dce commit e4bb8d8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
10 changes: 10 additions & 0 deletions Tests/Recurly/SubscriptionAddOn_Test.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php

class Recurly_SubscriptionAddOn_Test extends Recurly_TestCase
{
public function testToString() {
$addon = new \Recurly_SubscriptionAddOn();

$this->assertSame('<Recurly_SubscriptionAddOn >', $addon->__toString());
}
}
9 changes: 0 additions & 9 deletions lib/recurly/subscription_addon.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,4 @@ protected function getChangedAttributes($nested = false) {
);
return array_diff_key($this->_values, $immutable);
}

/**
* Pretty string version of the object
*/
public function __toString() {
$class = get_class($this);
$values = $this->__valuesString();
return "<$class $values>";
}
}

0 comments on commit e4bb8d8

Please sign in to comment.