From 1c9395c62ce085a7f520d1bd27ddc6adb0891622 Mon Sep 17 00:00:00 2001 From: "h.petrov" Date: Thu, 21 May 2020 10:57:32 +0300 Subject: [PATCH] replacing the null coalescing operator with ternary operator to support php 5 --- src/Epay.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Epay.php b/src/Epay.php index 59280ce..87dd32b 100755 --- a/src/Epay.php +++ b/src/Epay.php @@ -131,9 +131,9 @@ public function receiveNotification($requestInputs) $item = [ 'invoice' => $regs[1], 'status' => $regs[2], - 'pay_date' => $regs[4] ?? '', - 'stan' => $regs[5] ?? '', - 'bcode' => $regs[6] ?? '', + 'pay_date' => $regs[4] ? $regs[4] : '', + 'stan' => $regs[5] ? $regs[5] : '', + 'bcode' => $regs[6] ? $regs[6] : '', ]; $result['items'][] = $item;