From d22cb827691cd7d75abd9cdc0e7d762b1a0286f3 Mon Sep 17 00:00:00 2001 From: Jonathan Sacksick Date: Fri, 3 Mar 2023 09:49:50 +0200 Subject: [PATCH] Fix the return type in Rate::setInternationalCall(). --- src/Rate.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Rate.php b/src/Rate.php index 3a2424e..491a870 100644 --- a/src/Rate.php +++ b/src/Rate.php @@ -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; } /**