From ae80596b33fc554b2c4bcce165f47cf1eca4621c Mon Sep 17 00:00:00 2001 From: Vragov Roman Date: Mon, 26 Aug 2019 12:04:00 +0300 Subject: [PATCH] Fix vats request (#11) --- src/AtolOnlineClient/Request/V4/ReceiptRequest.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/AtolOnlineClient/Request/V4/ReceiptRequest.php b/src/AtolOnlineClient/Request/V4/ReceiptRequest.php index 32365a6..895f966 100644 --- a/src/AtolOnlineClient/Request/V4/ReceiptRequest.php +++ b/src/AtolOnlineClient/Request/V4/ReceiptRequest.php @@ -50,9 +50,9 @@ class ReceiptRequest private $payments; /** - * @var \AtolOnlineClient\Request\V4\VatReceiptRequest[] + * @var \AtolOnlineClient\Request\V4\VatReceiptRequest[]|null * "minItems": 1, "maxItems": 6, - * required + * * @Serializer\Groups({"set", "get"}) * @Serializer\SerializedName("vats") * @Serializer\Type("array") @@ -133,17 +133,17 @@ class ReceiptRequest } /** - * @return VatReceiptRequest[] + * @return VatReceiptRequest[]|null */ - public function getVats(): array + public function getVats(): ?array { return $this->vats; } /** - * @param VatReceiptRequest[] $vats + * @param VatReceiptRequest[]|null $vats */ - public function setVats(array $vats): void + public function setVats(?array $vats): void { $this->vats = $vats; }