mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-08 18:48:22 +01:00
Update Stripe lib to 10.7.0
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user