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

@@ -21,16 +21,28 @@ class CaseInsensitiveArray implements \ArrayAccess, \Countable, \IteratorAggrega
$this->container = \array_change_key_case($initial_array, \CASE_LOWER);
}
/**
* @return int
*/
#[\ReturnTypeWillChange]
public function count()
{
return \count($this->container);
}
/**
* @return \ArrayIterator
*/
#[\ReturnTypeWillChange]
public function getIterator()
{
return new \ArrayIterator($this->container);
}
/**
* @return void
*/
#[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
$offset = static::maybeLowercase($offset);
@@ -41,6 +53,10 @@ class CaseInsensitiveArray implements \ArrayAccess, \Countable, \IteratorAggrega
}
}
/**
* @return bool
*/
#[\ReturnTypeWillChange]
public function offsetExists($offset)
{
$offset = static::maybeLowercase($offset);
@@ -48,12 +64,20 @@ class CaseInsensitiveArray implements \ArrayAccess, \Countable, \IteratorAggrega
return isset($this->container[$offset]);
}
/**
* @return void
*/
#[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
$offset = static::maybeLowercase($offset);
unset($this->container[$offset]);
}
/**
* @return mixed
*/
#[\ReturnTypeWillChange]
public function offsetGet($offset)
{
$offset = static::maybeLowercase($offset);