From 6feaaf3fa65321bd87e4bcf68ff052d0550d3c5b Mon Sep 17 00:00:00 2001 From: Alexey Chelnakov Date: Mon, 6 Aug 2018 17:15:42 +0300 Subject: [PATCH] fix type string VatReceiptRequest.sum --- src/AtolOnlineClient/Request/V4/VatReceiptRequest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/AtolOnlineClient/Request/V4/VatReceiptRequest.php b/src/AtolOnlineClient/Request/V4/VatReceiptRequest.php index 1df6e6b..bd0a10f 100644 --- a/src/AtolOnlineClient/Request/V4/VatReceiptRequest.php +++ b/src/AtolOnlineClient/Request/V4/VatReceiptRequest.php @@ -39,10 +39,10 @@ class VatReceiptRequest * @param string $type * @param float $sum */ - public function __construct(string $type, string $sum) + public function __construct(string $type, $sum) { $this->type = $type; - $this->sum = $sum; + $this->sum = (float) $sum; } /** @@ -56,7 +56,7 @@ class VatReceiptRequest /** * @return float */ - public function getSum(): string + public function getSum() { return $this->sum; }