Skip to content

Commit

Permalink
Merge pull request #104 from jan-stanek/fix/deprecated_ssl_option
Browse files Browse the repository at this point in the history
Deprecated SSL option replaced
  • Loading branch information
jan-stanek committed Sep 22, 2022
2 parents 15deee9 + cfc9990 commit f90c8e4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,9 @@ public function getSoapOptions(): array
'ID_Application' => $this->appId,
'soap_version' => SOAP_1_2,
'encoding' => 'utf-8',
'ssl_method' => SOAP_SSL_METHOD_TLS,
'stream_context' => stream_context_create([
'ssl' => ['crypto_method' => STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT]
]),
'exceptions' => true,
'trace' => true,
'user_agent' => 'Skautis PHP library',
Expand Down

0 comments on commit f90c8e4

Please sign in to comment.