Skip to content

Commit f90c8e4

Browse files
authored
Merge pull request #104 from jan-stanek/fix/deprecated_ssl_option
Deprecated SSL option replaced
2 parents 15deee9 + cfc9990 commit f90c8e4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Config.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,9 @@ public function getSoapOptions(): array
118118
'ID_Application' => $this->appId,
119119
'soap_version' => SOAP_1_2,
120120
'encoding' => 'utf-8',
121-
'ssl_method' => SOAP_SSL_METHOD_TLS,
121+
'stream_context' => stream_context_create([
122+
'ssl' => ['crypto_method' => STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT]
123+
]),
122124
'exceptions' => true,
123125
'trace' => true,
124126
'user_agent' => 'Skautis PHP library',

0 commit comments

Comments
 (0)