diff --git a/src/Curl/HttpClient.php b/src/Curl/HttpClient.php index d068cf5..eaaaca1 100644 --- a/src/Curl/HttpClient.php +++ b/src/Curl/HttpClient.php @@ -88,7 +88,7 @@ private function execute(RequestInterface $request, $httpClient): ResponseInterf $headerSize = curl_getinfo($httpClient, CURLINFO_HEADER_SIZE); $headerString = substr($response, 0, $headerSize); - $headers = array_filter(explode("\n", $headerString), 'trim'); + $headers = array_filter(array_map('trim', explode("\n", $headerString))); $body = substr($response, $headerSize); @@ -99,4 +99,4 @@ private function closeHttpClient($httpClient) { curl_close($httpClient); } -} \ No newline at end of file +}