diff --git a/app/Services/EuPlatescService.php b/app/Services/EuPlatescService.php index 4f8e9c68..c9bbd6c3 100644 --- a/app/Services/EuPlatescService.php +++ b/app/Services/EuPlatescService.php @@ -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; } }