Skip to content

Commit

Permalink
Merge pull request #7 from jsacksick/v2.x
Browse files Browse the repository at this point in the history
Fix the return type in Rate::setInternationalCall().
  • Loading branch information
GeNyaa authored Mar 8, 2023
2 parents fcceaf6 + d22cb82 commit 8bb19fd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Rate.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,11 @@ public function getPostFields(): array
/**
* sets the type of call to perform domestic or international.
*/
public function setInternationalCall(bool $status): array
public function setInternationalCall(bool $status): static
{
$this->apiVersion = $status === true ? 'IntlRateV2' : 'RateV4';

return $this;
}

/**
Expand Down

0 comments on commit 8bb19fd

Please sign in to comment.