Skip to content

Commit a1ce602

Browse files
authored
verify_peer in dsn should be 0
Setting it to false value resolves to true in php 7.4 since false is taken as string.
1 parent 355aa03 commit a1ce602

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/mailer.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ configurable with the ``verify_peer`` option. Although it's not recommended to
171171
disable this verification for security reasons, it can be useful while developing
172172
the application or when using a self-signed certificate::
173173

174-
$dsn = 'smtp://user:pass@smtp.example.com?verify_peer=false'
174+
$dsn = 'smtp://user:pass@smtp.example.com?verify_peer=0'
175175

176176
.. versionadded:: 5.1
177177

0 commit comments

Comments
 (0)