From f1b4f916be0308331e96c1e0d1043093db04046e Mon Sep 17 00:00:00 2001 From: Dmitrii Derepko Date: Sat, 13 Jan 2024 23:59:45 +0700 Subject: [PATCH] Support php80 --- src/Message/EnvelopeTrait.php | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/src/Message/EnvelopeTrait.php b/src/Message/EnvelopeTrait.php index b971bdff..7e58a97b 100644 --- a/src/Message/EnvelopeTrait.php +++ b/src/Message/EnvelopeTrait.php @@ -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