From 5290bd28423e581ef77dafdc8a76b81b6ff245f2 Mon Sep 17 00:00:00 2001 From: erikn69 Date: Mon, 22 Jun 2026 10:29:29 -0500 Subject: [PATCH] Add attachments processing to SymfonyMailCollector --- src/SymfonyMailCollector.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/SymfonyMailCollector.php b/src/SymfonyMailCollector.php index 4574921..6b0a155 100644 --- a/src/SymfonyMailCollector.php +++ b/src/SymfonyMailCollector.php @@ -53,6 +53,10 @@ public function collect(): array 'headers' => $message->getHeaders()->toString(), 'body' => null, 'html' => null, + 'attachments' => array_filter(array_map( + fn($att) => $att->asDebugString(), + $message->getAttachments() + )), ]; if ($this->showBody) {