File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/Symfony/Component/Mailer/Transport Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -49,8 +49,8 @@ public static function fromString(string $dsn): self
4949 throw new InvalidArgumentException (sprintf ('The "%s" mailer DSN must contain a host (use "default" by default). ' , $ dsn ));
5050 }
5151
52- $ user = isset ( $ parsedDsn [ ' user ' ]) && '' !== ($ parsedDsn ['user ' ] ?? '' ) ? urldecode ($ parsedDsn ['user ' ]) : null ;
53- $ password = isset ( $ parsedDsn [ ' pass ' ]) && '' !== ($ parsedDsn ['pass ' ] ?? '' ) ? urldecode ($ parsedDsn ['pass ' ]) : null ;
52+ $ user = '' !== ($ parsedDsn ['user ' ] ?? '' ) ? urldecode ($ parsedDsn ['user ' ]) : null ;
53+ $ password = '' !== ($ parsedDsn ['pass ' ] ?? '' ) ? urldecode ($ parsedDsn ['pass ' ]) : null ;
5454 $ port = $ parsedDsn ['port ' ] ?? null ;
5555 parse_str ($ parsedDsn ['query ' ] ?? '' , $ query );
5656
You can’t perform that action at this time.
0 commit comments