Skip to content

Commit

Permalink
Break on purpose
Browse files Browse the repository at this point in the history
  • Loading branch information
johanwilfer committed Aug 10, 2024
1 parent d3565f3 commit bee188e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/SIE/Data/Verification.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public function validate(): void
}

if ($this->transactions === []) {
throw new DomainException('No transactions for verification id "' . $this->id . '".');
throw new DomainException( 'No transactions for verification id "' . $this->id . '".' );
}

// validate verifications
Expand All @@ -147,7 +147,7 @@ public function validate(): void
// validate all our transactions
$transaction->validate();
// calculate sum of all transactions
$sum += (float) $transaction->getAmount();
$sum += $transaction->getAmount();

Check failure on line 150 in src/SIE/Data/Verification.php

View workflow job for this annotation

GitHub Actions / phpstan

Only numeric types are allowed in +, float|null given on the right side.
}

// validate that our transactions equal zero
Expand Down

0 comments on commit bee188e

Please sign in to comment.