Apply patches only on AbstractArray class

This commit is contained in:
Yonas Habteab 2023-07-27 09:35:28 +02:00 committed by Johannes Meyer
parent 14a5202063
commit effa84a827

View File

@ -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