Skip to content
This repository was archived by the owner on Feb 6, 2022. It is now read-only.

Commit 9daab33

Browse files
committed
bug #309 Fix invalid encryption when using env (mmft24)
This PR was merged into the 3.5-dev branch. Discussion ---------- Fix invalid encryption when using env It is not possible to configure null as encryption using an environment variable. Allowing 'tcp' as configuration option would fix this issue. 'tcp' is the protocol set on the transporter wenn null is used. Fix issue #170 Commits ------- 58c6b05 Fix invalid encryption when using env
2 parents e6033c8 + 58c6b05 commit 9daab33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DependencyInjection/SwiftmailerTransportFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ public static function resolveOptions(array $options)
144144
*/
145145
public static function validateConfig($options)
146146
{
147-
if (!\in_array($options['encryption'], ['tls', 'ssl', null], true)) {
147+
if (!\in_array($options['encryption'], ['tcp', 'tls', 'ssl', null], true)) {
148148
throw new \InvalidArgumentException(sprintf('The %s encryption is not supported', $options['encryption']));
149149
}
150150

0 commit comments

Comments
 (0)