@@ -318,7 +318,7 @@ public function setHtmlBody(string $htmlBody): self
318318 * @param string|null $attachmentName
319319 * @return $this
320320 */
321- public function addAttachment (string $ attachmentPath , string $ attachmentName = null ): self
321+ public function addAttachment (string $ attachmentPath , ? string $ attachmentName = null ): self
322322 {
323323 if (!isset ($ this ->message ['attachment ' ])) {
324324 $ this ->message ['attachment ' ] = [];
@@ -337,7 +337,7 @@ public function addAttachment(string $attachmentPath, string $attachmentName = n
337337 * @param string|null $attachmentName
338338 * @return $this
339339 */
340- public function addStringAttachment (string $ attachmentContent , string $ attachmentName = null ): self
340+ public function addStringAttachment (string $ attachmentContent , ? string $ attachmentName = null ): self
341341 {
342342 if (!isset ($ this ->message ['attachment ' ])) {
343343 $ this ->message ['attachment ' ] = [];
@@ -356,7 +356,7 @@ public function addStringAttachment(string $attachmentContent, string $attachmen
356356 * @param string|null $inlineImageName
357357 * @return $this
358358 */
359- public function addInlineImage (string $ inlineImagePath , string $ inlineImageName = null ): self
359+ public function addInlineImage (string $ inlineImagePath , ? string $ inlineImageName = null ): self
360360 {
361361 if (!isset ($ this ->message ['inline ' ])) {
362362 $ this ->message ['inline ' ] = [];
@@ -466,7 +466,7 @@ public function setClickTracking(bool $enabled, bool $htmlOnly = false): self
466466 * @return $this
467467 * @throws \Exception
468468 */
469- public function setDeliveryTime (string $ timeDate , string $ timeZone = null ): self
469+ public function setDeliveryTime (string $ timeDate , ? string $ timeZone = null ): self
470470 {
471471 if (null !== $ timeZone ) {
472472 $ timeZoneObj = new DateTimeZone ($ timeZone );
0 commit comments