File tree Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -42,11 +42,11 @@ public static function fromString(string $dsn): self
4242 }
4343
4444 if (!isset ($ parsedDsn ['scheme ' ])) {
45- throw new InvalidArgumentException (sprintf ('The "%s" mailer DSN must contain a transport scheme. ' , $ dsn ));
45+ throw new InvalidArgumentException (sprintf ('The "%s" mailer DSN must contain a scheme. ' , $ dsn ));
4646 }
4747
4848 if (!isset ($ parsedDsn ['host ' ])) {
49- throw new InvalidArgumentException (sprintf ('The "%s" mailer DSN must contain a mailer name . ' , $ dsn ));
49+ throw new InvalidArgumentException (sprintf ('The "%s" mailer DSN must contain a host (use "default" by default) . ' , $ dsn ));
5050 }
5151
5252 $ user = isset ($ parsedDsn ['user ' ]) ? urldecode ($ parsedDsn ['user ' ]) : null ;
Original file line number Diff line number Diff line change @@ -77,12 +77,12 @@ public function invalidDsnProvider(): iterable
7777
7878 yield [
7979 '//sendmail ' ,
80- 'The "//sendmail" mailer DSN must contain a transport scheme. ' ,
80+ 'The "//sendmail" mailer DSN must contain a scheme. ' ,
8181 ];
8282
8383 yield [
8484 'file:///some/path ' ,
85- 'The "file:///some/path" mailer DSN must contain a mailer name . ' ,
85+ 'The "file:///some/path" mailer DSN must contain a host (use "default" by default) . ' ,
8686 ];
8787 }
8888}
Original file line number Diff line number Diff line change @@ -77,12 +77,12 @@ public function invalidDsnProvider(): iterable
7777
7878 yield [
7979 '//sendmail ' ,
80- 'The "//sendmail" mailer DSN must contain a transport scheme. ' ,
80+ 'The "//sendmail" mailer DSN must contain a scheme. ' ,
8181 ];
8282
8383 yield [
8484 'file:///some/path ' ,
85- 'The "file:///some/path" mailer DSN must contain a mailer name . ' ,
85+ 'The "file:///some/path" mailer DSN must contain a host (use "default" by default) . ' ,
8686 ];
8787 }
8888}
Original file line number Diff line number Diff line change @@ -42,11 +42,11 @@ public static function fromString(string $dsn): self
4242 }
4343
4444 if (!isset ($ parsedDsn ['scheme ' ])) {
45- throw new InvalidArgumentException (sprintf ('The "%s" mailer DSN must contain a transport scheme. ' , $ dsn ));
45+ throw new InvalidArgumentException (sprintf ('The "%s" mailer DSN must contain a scheme. ' , $ dsn ));
4646 }
4747
4848 if (!isset ($ parsedDsn ['host ' ])) {
49- throw new InvalidArgumentException (sprintf ('The "%s" mailer DSN must contain a mailer name . ' , $ dsn ));
49+ throw new InvalidArgumentException (sprintf ('The "%s" mailer DSN must contain a host (use "default" by default) . ' , $ dsn ));
5050 }
5151
5252 $ user = isset ($ parsedDsn ['user ' ]) ? urldecode ($ parsedDsn ['user ' ]) : null ;
You can’t perform that action at this time.
0 commit comments