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 bf5b138
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
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());
}
}
2 changes: 1 addition & 1 deletion lib/recurly/subscription_addon.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ protected function getChangedAttributes($nested = false) {
*/
public function __toString() {
$class = get_class($this);
$values = $this->__valuesString();
$values = $this->getValuesString();
return "<$class $values>";
}
}

0 comments on commit bf5b138

Please sign in to comment.