From cfc9990d55385f572bfdca2e64761fa29a5d8815 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Stan=C4=9Bk?= Date: Tue, 20 Sep 2022 23:17:33 +0200 Subject: [PATCH] deprecated ssl option replaced --- src/Config.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Config.php b/src/Config.php index fbbfa8c..97b6fc8 100644 --- a/src/Config.php +++ b/src/Config.php @@ -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',