From ba1833a3b5d5a9f1f57ae0a6989022c1b4b26ad8 Mon Sep 17 00:00:00 2001 From: Ezequiel Esnaola Date: Fri, 7 May 2021 09:13:20 -0300 Subject: [PATCH] Add compatibility for php7.4 (#104) * Update Afip.php Add compatibility for php7.4 * Update Afip.php --- src/Afip.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Afip.php b/src/Afip.php index 63f1d7c..a9595c5 100644 --- a/src/Afip.php +++ b/src/Afip.php @@ -226,7 +226,7 @@ private function CreateServiceTA($service) 'location' => $this->WSAA_URL, 'trace' => 1, 'exceptions' => 0, - 'stream_context' => stream_context_create(['ssl'=> ['verify_peer'=> false,'verify_peer_name'=> false]]) + 'stream_context' => stream_context_create(['ssl'=> ['ciphers'=> 'AES256-SHA','verify_peer'=> false,'verify_peer_name'=> false]]) )); $results=$client->loginCms(array('in0'=>$CMS)); if (is_soap_fault($results)) @@ -376,7 +376,7 @@ public function ExecuteRequest($operation, $params = array()) 'location' => $this->URL, 'trace' => 1, 'exceptions' => 0, - 'stream_context' => stream_context_create(['ssl'=> ['verify_peer'=> false,'verify_peer_name'=> false]]) + 'stream_context' => stream_context_create(['ssl'=> ['ciphers'=> 'AES256-SHA','verify_peer'=> false,'verify_peer_name'=> false]]) )); }