Update Stripe lib to 10.7.0

This commit is contained in:
Laurent Destailleur
2023-04-24 18:42:04 +02:00
parent 06f8291e07
commit 936512d0bb
256 changed files with 8077 additions and 2978 deletions

View File

@@ -93,7 +93,7 @@ class RequestOptions
public static function parse($options, $strict = false)
{
if ($options instanceof self) {
return $options;
return clone $options;
}
if (null === $options) {
@@ -154,8 +154,13 @@ class RequestOptions
throw new \Stripe\Exception\InvalidArgumentException($message);
}
/** @return string */
private function redactedApiKey()
{
if (null === $this->apiKey) {
return '';
}
$pieces = \explode('_', $this->apiKey, 3);
$last = \array_pop($pieces);
$redactedLast = \strlen($last) > 4