From 44fab4f05e872f9a34830e4fbf253719b395e78e Mon Sep 17 00:00:00 2001 From: Anders Jenbo Date: Wed, 13 Mar 2024 20:38:13 +0100 Subject: [PATCH] Correct return type of Trustly_Data::set() --- Trustly/Data/data.php | 2 ++ Trustly/Data/jsonrpcrequest.php | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Trustly/Data/data.php b/Trustly/Data/data.php index a77274b..1467e9d 100644 --- a/Trustly/Data/data.php +++ b/Trustly/Data/data.php @@ -128,6 +128,8 @@ public static function ensureUTF8($str) { * @param string $name * * @param mixed $value + * + * @return void */ public function set($name, $value) { $this->payload[$name] = Trustly_Data::ensureUTF8($value); diff --git a/Trustly/Data/jsonrpcrequest.php b/Trustly/Data/jsonrpcrequest.php index 2b10f9a..305334c 100644 --- a/Trustly/Data/jsonrpcrequest.php +++ b/Trustly/Data/jsonrpcrequest.php @@ -163,10 +163,10 @@ public function getUUID() { * * @param string $method The name of the API method this call is for * - * @return string $method + * @return void */ public function setMethod($method) { - return $this->set('method', $method); + $this->set('method', $method); }