Skip to content

Commit

Permalink
main
Browse files Browse the repository at this point in the history
  • Loading branch information
6562680 committed Jun 27, 2024
1 parent 035ae94 commit e8dff9b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
: [];
Expand Down

0 comments on commit e8dff9b

Please sign in to comment.