File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -77,12 +77,12 @@ public function invalidDsnProvider(): iterable
77
77
78
78
yield [
79
79
'//sendmail ' ,
80
- 'The "//sendmail" mailer DSN must contain a transport scheme. ' ,
80
+ 'The "//sendmail" mailer DSN must contain a scheme. ' ,
81
81
];
82
82
83
83
yield [
84
84
'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) . ' ,
86
86
];
87
87
}
88
88
}
Original file line number Diff line number Diff line change @@ -42,11 +42,11 @@ public static function fromString(string $dsn): self
42
42
}
43
43
44
44
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 ));
46
46
}
47
47
48
48
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 ));
50
50
}
51
51
52
52
$ user = isset ($ parsedDsn ['user ' ]) ? urldecode ($ parsedDsn ['user ' ]) : null ;
You can’t perform that action at this time.
0 commit comments