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