File tree Expand file tree Collapse file tree 2 files changed +15
-5
lines changed
Expand file tree Collapse file tree 2 files changed +15
-5
lines changed Original file line number Diff line number Diff line change @@ -80,11 +80,19 @@ public function replyTo(): ?Address
8080 }
8181
8282 /**
83- * Get the IN-REPLY-TO address.
83+ * Get the IN-REPLY-TO message identifier(s).
84+ *
85+ * @return string[]
8486 */
85- public function inReplyTo (): ? Address
87+ public function inReplyTo (): array
8688 {
87- return head ($ this ->addresses (HeaderConsts::IN_REPLY_TO )) ?: null ;
89+ $ parts = $ this ->header (HeaderConsts::IN_REPLY_TO )?->getParts() ?? [];
90+
91+ $ values = array_map (function (IHeaderPart $ part ) {
92+ return $ part ->getValue ();
93+ }, $ parts );
94+
95+ return array_values (array_filter ($ values ));
8896 }
8997
9098 /**
Original file line number Diff line number Diff line change @@ -46,9 +46,11 @@ public function messageId(): ?string;
4646 public function replyTo (): ?Address ;
4747
4848 /**
49- * Get the 'In-Reply-To' address.
49+ * Get the 'In-Reply-To' message identifier(s).
50+ *
51+ * @return string[]
5052 */
51- public function inReplyTo (): ? Address ;
53+ public function inReplyTo (): array ;
5254
5355 /**
5456 * Get the 'To' addresses.
You can’t perform that action at this time.
0 commit comments