Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
xepozz committed Jan 14, 2024
1 parent a0ecfa1 commit ba21c45
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Message/JsonMessageSerializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ public function unserialize(string $value): MessageInterface
throw new InvalidArgumentException('Metadata must be array. Got ' . get_debug_type($meta) . '.');
}

$message = new Message('$name', $payload['data'] ?? null, $meta);
// TODO: will be removed later
$message = new Message($payload['name'] ?? '$name', $payload['data'] ?? null, $meta);

if (isset($meta[EnvelopeInterface::ENVELOPE_STACK_KEY]) && is_array($meta[EnvelopeInterface::ENVELOPE_STACK_KEY])) {
$message = $message->withMetadata(
Expand Down

0 comments on commit ba21c45

Please sign in to comment.