Skip to content

Commit

Permalink
Apply Rector changes (CI)
Browse files Browse the repository at this point in the history
  • Loading branch information
viktorprogger authored and github-actions[bot] committed Sep 15, 2024
1 parent fb80ade commit 6c78406
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Message/JsonMessageSerializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public function serialize(MessageInterface $message): string
'name' => $message->getHandlerName(),
'data' => $message->getData(),
'meta' => $message->getMetadata(),
'class' => $message instanceof EnvelopeInterface ? get_class($message->getMessage()) : get_class($message),
'class' => $message instanceof EnvelopeInterface ? $message->getMessage()::class : $message::class,
];

return json_encode($payload, JSON_THROW_ON_ERROR);
Expand Down

0 comments on commit 6c78406

Please sign in to comment.