Skip to content

Commit

Permalink
fix: hash function
Browse files Browse the repository at this point in the history
  • Loading branch information
andreiio committed Jul 4, 2023
1 parent 6ca2002 commit e98c20d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/Services/EuPlatescService.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@ public function getPaymentData(Donation $donation): array

private function euPlatescHash($data): string
{
$str = null;
$str = '';
foreach ($data as $d) {
if ($d === null || \strlen($d) == 0) {
if ($d === null || \strlen((string) $d) == 0) {
$str .= '-';
} else {
$str .= \strlen($d) . $d;
$str .= \strlen((string) $d) . $d;
}
}

Expand Down

0 comments on commit e98c20d

Please sign in to comment.