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 1a49739 commit f6ceb06
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,10 @@ public static function php_throwable_args($arg = null, ...$args) : array
$result[ 'messageDataList' ] = $messageDataList;

$messageDataList = $messageDataList ?? [];
$messageData = array_replace(...$messageDataList);
$messageData = $messageDataList
? array_replace(...$messageDataList)
: [];

$messageObject = (object) ([ $message ] + $messageData);

$result[ 'message' ] = $message;
Expand Down

0 comments on commit f6ceb06

Please sign in to comment.