Skip to content

Commit

Permalink
Support php80
Browse files Browse the repository at this point in the history
  • Loading branch information
xepozz committed Jan 13, 2024
1 parent 86c0cf5 commit f1b4f91
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions src/Message/EnvelopeTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,16 @@ public static function fromMessage(MessageInterface $message): self

public function getMetadata(): array
{
return array_merge($this->message->getMetadata(), [
self::ENVELOPE_STACK_KEY => array_merge(
$this->message->getMetadata()[self::ENVELOPE_STACK_KEY] ?? [],
[self::class],
),
...$this->getEnvelopeMetadata(),
]);
return array_merge(
$this->message->getMetadata(),
[
self::ENVELOPE_STACK_KEY => array_merge(
$this->message->getMetadata()[self::ENVELOPE_STACK_KEY] ?? [],
[self::class],
),
],
$this->getEnvelopeMetadata(),
);
}

public function getEnvelopeMetadata(): array
Expand Down

0 comments on commit f1b4f91

Please sign in to comment.