Upgrade 1-11.38

This commit is contained in:
xesmyd
2026-03-30 14:10:30 +02:00
parent f2a7e6d1fc
commit ac648ef29d
24665 changed files with 69682 additions and 2205004 deletions
+8 -1
View File
@@ -267,6 +267,11 @@ class CurlClient implements ClientInterface, StreamingClientInterface
if ($body) {
$opts[\CURLOPT_POSTFIELDS] = $body;
}
// inspired by https://github.com/stripe/stripe-php/issues/1817#issuecomment-2670463182
elseif (isset($opts[\CURLOPT_POST]) && 1 === $opts[\CURLOPT_POST]) {
$opts[\CURLOPT_POSTFIELDS] = '';
}
// this is a little verbose, but makes v1 vs v2 behavior really clear
if (!$this->hasHeader($headers, 'Idempotency-Key')) {
// all v2 requests should have an IK
@@ -753,7 +758,9 @@ class CurlClient implements ClientInterface, StreamingClientInterface
private function closeCurlHandle()
{
if (null !== $this->curlHandle) {
\curl_close($this->curlHandle);
if (PHP_VERSION_ID < 80000) {
\curl_close($this->curlHandle);
}
$this->curlHandle = null;
}
}