1
0
mirror of synced 2024-11-25 06:26:05 +03:00

fix type string VatReceiptRequest.sum

This commit is contained in:
Alexey Chelnakov 2018-08-06 17:15:42 +03:00
parent becb2f5d11
commit 6feaaf3fa6

View File

@ -39,10 +39,10 @@ class VatReceiptRequest
* @param string $type * @param string $type
* @param float $sum * @param float $sum
*/ */
public function __construct(string $type, string $sum) public function __construct(string $type, $sum)
{ {
$this->type = $type; $this->type = $type;
$this->sum = $sum; $this->sum = (float) $sum;
} }
/** /**
@ -56,7 +56,7 @@ class VatReceiptRequest
/** /**
* @return float * @return float
*/ */
public function getSum(): string public function getSum()
{ {
return $this->sum; return $this->sum;
} }