From: gggeek <giunta.gaetano@gmail.com>
Date: Thu, 26 May 2022 11:33:55 +0000 (+0000)
Subject: nitpick
X-Git-Tag: 4.7.1
X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=4d9abfc1f2cc28c7fd306352bff3caadb5963075;p=plcapi.git

nitpick
---

diff --git a/src/Client.php b/src/Client.php
index 6c4bc8eb..388d481e 100644
--- a/src/Client.php
+++ b/src/Client.php
@@ -516,7 +516,7 @@ class Client
         /// @todo we could be smarter about this and force usage of curl in scenarios where it is both available and
         ///       needed, such as digest or ntlm auth. Do not attempt to use it for https if not present
         $useCurl = ($this->use_curl == self::USE_CURL_ALWAYS) || ($this->use_curl == self::USE_CURL_AUTO &&
-            ($method == 'https' || $method == 'http11' || $method == 'http2' || $method == 'http2tls'));
+            (in_array($method, array('https', 'http11', 'http2', 'http2tls'))));
 
         if ($useCurl) {
             $r = $this->sendPayloadCURL(