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 @@ -97,11 +97,14 @@ public function getOptions(): ?MessageOptionsInterface
97
97
/**
98
98
* @return $this
99
99
*/
100
- public function transport (string $ transport ): self
100
+ public function transport (? string $ transport ): self
101
101
{
102
102
if (!$ this ->message instanceof Email) {
103
103
throw new LogicException ('Cannot set a Transport on a RawMessage instance. ' );
104
104
}
105
+ if (null === $ transport ) {
106
+ return $ this ;
107
+ }
105
108
106
109
$ this ->message ->getHeaders ()->addTextHeader ('X-Transport ' , $ transport );
107
110
Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ public function getSubject(): string
81
81
/**
82
82
* @return $this
83
83
*/
84
- public function transport (string $ transport ): self
84
+ public function transport (? string $ transport ): self
85
85
{
86
86
$ this ->transport = $ transport ;
87
87
You can’t perform that action at this time.
0 commit comments