From e98c20dbce5f6687ab9c7e1b6063d0ca9d59fbe0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrei=20Ioni=C8=9B=C4=83?= Date: Tue, 4 Jul 2023 12:51:11 +0100 Subject: [PATCH] fix: hash function --- app/Services/EuPlatescService.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; } }