From e8dff9b054eb54e784ed19094aaf1e9837de39ba Mon Sep 17 00:00:00 2001 From: gzhegow <6562680@gmail.com> Date: Thu, 27 Jun 2024 19:06:18 +0300 Subject: [PATCH] main --- src/Lib.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Lib.php b/src/Lib.php index 30928e7..87ca7dc 100644 --- a/src/Lib.php +++ b/src/Lib.php @@ -191,6 +191,12 @@ public static function php_throwable_args($arg = null, ...$args) : array $result[ 'messageDataList' ] = $messageDataList; $messageDataList = $messageDataList ?? []; + + $message = $messageList ? end($messageList) : null; + $code = $codeList ? end($codeList) : null; + $previous = $previousList ? end($previousList) : null; + $messageCode = $messageCodeList ? end($messageCodeList) : null; + $messageData = $messageDataList ? array_replace(...$messageDataList) : [];