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