Skip to content

Commit

Permalink
fix: cast totalRevenue as int to account for empty values
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Waldstein committed Sep 14, 2023
1 parent 416fe7b commit d5d51a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DonationForms/Repositories/DonationFormRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ public function getTotalRevenue(int $formId): int
return 0;
}

return $query->totalRevenue;
return (int)$query->totalRevenue;
}

/**
Expand Down

0 comments on commit d5d51a2

Please sign in to comment.