From 5b82aa1b1a401689d9841adbad24b0ba3f7e516f Mon Sep 17 00:00:00 2001 From: ElonSmithee <97854095+ElonSmithee@users.noreply.github.com> Date: Wed, 18 May 2022 17:43:47 +0300 Subject: [PATCH] Update IsNode.php --- lib/Braintree/IsNode.php | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/lib/Braintree/IsNode.php b/lib/Braintree/IsNode.php index e50eb6f4..cd3e75e6 100644 --- a/lib/Braintree/IsNode.php +++ b/lib/Braintree/IsNode.php @@ -17,24 +17,18 @@ public function __construct($name) /** * Sets the value of the object's "is" key to a string of $value - * - * @param object $value to have its string value set in $this - * - * @return object */ - public function is($value) + public function is(string $value): self { - $this->searchTerms['is'] = strval($value); + $this->searchTerms['is'] = $value; return $this; } /** * The searchTerms - * - * @return array */ - public function toParam() + public function toParam(): array { return $this->searchTerms; }