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; }