Skip to content

Commit

Permalink
fix: accessor (#176)
Browse files Browse the repository at this point in the history
  • Loading branch information
OskarStark authored Dec 28, 2024
1 parent c53edc1 commit 8c6ac09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Model/Message/MessageBag.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function with(MessageInterface $message): self
public function merge(MessageBag $messageBag): self
{
$messages = clone $this;
$messages->messages = array_merge($messages->messages, $messageBag->messages);
$messages->messages = array_merge($messages->messages, $messageBag->getMessages());

return $messages;
}
Expand Down

0 comments on commit 8c6ac09

Please sign in to comment.