Enforce types when checking values of boolean

This commit is contained in:
David Bomba 2021-11-27 11:40:18 +11:00
parent 92001dae7b
commit 8916c57777

View File

@ -138,7 +138,7 @@ class InvoiceService
{ {
// $this->invoice = (new UpdateBalance($this->invoice, $balance_adjustment, $is_draft))->run(); // $this->invoice = (new UpdateBalance($this->invoice, $balance_adjustment, $is_draft))->run();
if ($this->invoice->is_deleted) { if ((bool)$this->invoice->is_deleted !== false) {
return $this; return $this;
} }