File tree 2 files changed +5
-2
lines changed
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -102,11 +102,14 @@ public function getOptions(): ?MessageOptionsInterface
102
102
/**
103
103
* @return $this
104
104
*/
105
- public function transport (string $ transport ): self
105
+ public function transport (? string $ transport ): self
106
106
{
107
107
if (!$ this ->message instanceof Email) {
108
108
throw new LogicException ('Cannot set a Transport on a RawMessage instance. ' );
109
109
}
110
+ if (null === $ transport ) {
111
+ return $ this ;
112
+ }
110
113
111
114
$ this ->message ->getHeaders ()->addTextHeader ('X-Transport ' , $ transport );
112
115
Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ public function getSubject(): string
83
83
/**
84
84
* @return $this
85
85
*/
86
- public function transport (string $ transport ): self
86
+ public function transport (? string $ transport ): self
87
87
{
88
88
$ this ->transport = $ transport ;
89
89
You can’t perform that action at this time.
0 commit comments