Skip to content

Commit fcaca3c

Browse files
committed
SP-982: Fixing type issues caused by Upgrade and fixing Integration tests
1 parent ee73673 commit fcaca3c

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/Entity/Invoice/Invoice.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class Invoice
5353
private ?string $bitpayGuid;
5454

5555
#[ORM\Column]
56-
private bool $exceptionStatus = false;
56+
private string $exceptionStatus = 'false';
5757

5858
#[ORM\Column(nullable: true)]
5959
private ?string $bitpayUrl;
@@ -298,15 +298,15 @@ public function setBitpayGuid(?string $bitpayGuid): void
298298
/**
299299
* @return bool
300300
*/
301-
public function getExceptionStatus(): bool
301+
public function getExceptionStatus(): string
302302
{
303303
return $this->exceptionStatus;
304304
}
305305

306306
/**
307307
* @param bool $exceptionStatus
308308
*/
309-
public function setExceptionStatus(bool $exceptionStatus): void
309+
public function setExceptionStatus(string $exceptionStatus): void
310310
{
311311
$this->exceptionStatus = $exceptionStatus;
312312
}

src/Entity/Invoice/Payment.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class Payment
1717
private ?int $id = null;
1818

1919
#[ORM\Column(nullable: true)]
20-
private ?int $amountPaid = null;
20+
private ?float $amountPaid = null;
2121

2222
#[ORM\Column(nullable: true)]
2323
private ?string $displayAmountPaid = null;
@@ -61,12 +61,12 @@ public function getId(): ?int
6161
return $this->id;
6262
}
6363

64-
public function getAmountPaid(): ?int
64+
public function getAmountPaid(): ?float
6565
{
6666
return $this->amountPaid;
6767
}
6868

69-
public function setAmountPaid(?int $amountPaid): void
69+
public function setAmountPaid(?float $amountPaid): void
7070
{
7171
$this->amountPaid = $amountPaid;
7272
}

0 commit comments

Comments
 (0)