Skip to content

Commit

Permalink
Removed unnecessary suppress comment
Browse files Browse the repository at this point in the history
- Updated Invoice class
  • Loading branch information
josemmo committed Sep 14, 2024
1 parent 7a0e9e5 commit f4ec9fd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Invoice.php
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ class Invoice {
protected $issueDate = null;
protected $dueDate = null;
protected $taxPointDate = null;
/** @var string[] */
protected $notes = [];
protected $buyerReference = null;
protected $purchaseOrderReference = null;
Expand All @@ -264,6 +265,7 @@ class Invoice {
protected $payee = null;
protected $delivery = null;
protected $payment = null;
/** @var InvoiceLine[] */
protected $lines = [];

use AllowanceOrChargeTrait;
Expand Down Expand Up @@ -574,7 +576,6 @@ public function getNote(): ?string {
* @see Invoice::addNote()
*/
public function setNote(?string $note): self {
// @phan-suppress-next-line PhanPartialTypeMismatchProperty
$this->notes = ($note === null) ? [] : [$note];
return $this;
}
Expand Down

0 comments on commit f4ec9fd

Please sign in to comment.