mirror of
https://github.com/Icinga/icinga-php-thirdparty.git
synced 2025-07-21 20:54:38 +02:00
Apply patches only on AbstractArray
class
This commit is contained in:
parent
14a5202063
commit
effa84a827
@ -8,25 +8,30 @@
|
|||||||
public function offsetGet($offset)
|
public function offsetGet($offset)
|
||||||
{
|
{
|
||||||
return $this->data[$offset] ?? null;
|
return $this->data[$offset] ?? null;
|
||||||
--- a/vendor/ramsey/collection/src/AbstractCollection.php
|
@@ -132,6 +133,11 @@ abstract class AbstractArray implements ArrayInterface
|
||||||
+++ b/vendor/ramsey/collection/src/AbstractCollection.php
|
return serialize($this->data);
|
||||||
@@ -51,6 +51,16 @@ abstract class AbstractCollection extends AbstractArray implements CollectionInt
|
}
|
||||||
use ValueToStringTrait;
|
|
||||||
use ValueExtractorTrait;
|
|
||||||
|
|
||||||
+ public function __serialize()
|
+ public function __serialize()
|
||||||
+ {
|
+ {
|
||||||
+ $this->serialize();
|
+ return $this->serialize();
|
||||||
+ }
|
+ }
|
||||||
+
|
+
|
||||||
|
/**
|
||||||
|
* Converts a serialized string representation into an instance object.
|
||||||
|
*
|
||||||
|
@@ -149,6 +155,11 @@ abstract class AbstractArray implements ArrayInterface
|
||||||
|
$this->data = $data;
|
||||||
|
}
|
||||||
|
|
||||||
+ public function __unserialize(array $data)
|
+ public function __unserialize(array $data)
|
||||||
+ {
|
+ {
|
||||||
+ $this->unserialize($data);
|
+ $this->unserialize($data);
|
||||||
+ }
|
+ }
|
||||||
+
|
+
|
||||||
/**
|
/**
|
||||||
* @inheritDoc
|
* Returns the number of items in this array.
|
||||||
*/
|
*
|
||||||
--
|
--
|
||||||
2.41.0
|
2.41.0
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user