Add `ramsey/collection` PHP 8.1 support patch
This commit is contained in:
parent
1ac4ad5e6c
commit
14a5202063
|
@ -8,6 +8,9 @@
|
||||||
"sort-packages": true,
|
"sort-packages": true,
|
||||||
"platform": {
|
"platform": {
|
||||||
"php": "7.2.9"
|
"php": "7.2.9"
|
||||||
|
},
|
||||||
|
"allow-plugins": {
|
||||||
|
"cweagans/composer-patches": true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"support": {
|
"support": {
|
||||||
|
@ -26,6 +29,7 @@
|
||||||
"clue/socks-react": "^1.4",
|
"clue/socks-react": "^1.4",
|
||||||
"clue/stdio-react": "^2.6",
|
"clue/stdio-react": "^2.6",
|
||||||
"components/jquery": "3.6.*",
|
"components/jquery": "3.6.*",
|
||||||
|
"cweagans/composer-patches": "~1.0",
|
||||||
"dompdf/dompdf": "^2.0.3",
|
"dompdf/dompdf": "^2.0.3",
|
||||||
"erusev/parsedown": "^1.7.4",
|
"erusev/parsedown": "^1.7.4",
|
||||||
"evenement/evenement": "^3.0.1",
|
"evenement/evenement": "^3.0.1",
|
||||||
|
@ -59,5 +63,13 @@
|
||||||
"post-update-cmd": [
|
"post-update-cmd": [
|
||||||
"AssetLoader::update"
|
"AssetLoader::update"
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
"extra": {
|
||||||
|
"composer-exit-on-patch-failure": true,
|
||||||
|
"patches": {
|
||||||
|
"ramsey/collection": {
|
||||||
|
"Collection: Add PHP 8.1 support": "patches/ramsey-collection.patch"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,32 @@
|
||||||
|
--- a/vendor/ramsey/collection/src/AbstractArray.php
|
||||||
|
+++ b/vendor/ramsey/collection/src/AbstractArray.php
|
||||||
|
@@ -84,6 +84,7 @@ abstract class AbstractArray implements ArrayInterface
|
||||||
|
* @return T|null the value stored at the offset, or null if the offset
|
||||||
|
* does not exist.
|
||||||
|
*/
|
||||||
|
+ #[\ReturnTypeWillChange]
|
||||||
|
public function offsetGet($offset)
|
||||||
|
{
|
||||||
|
return $this->data[$offset] ?? null;
|
||||||
|
--- a/vendor/ramsey/collection/src/AbstractCollection.php
|
||||||
|
+++ b/vendor/ramsey/collection/src/AbstractCollection.php
|
||||||
|
@@ -51,6 +51,16 @@ abstract class AbstractCollection extends AbstractArray implements CollectionInt
|
||||||
|
use ValueToStringTrait;
|
||||||
|
use ValueExtractorTrait;
|
||||||
|
|
||||||
|
+ public function __serialize()
|
||||||
|
+ {
|
||||||
|
+ $this->serialize();
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
+ public function __unserialize(array $data)
|
||||||
|
+ {
|
||||||
|
+ $this->unserialize($data);
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
/**
|
||||||
|
* @inheritDoc
|
||||||
|
*/
|
||||||
|
--
|
||||||
|
2.41.0
|
||||||
|
|
Loading…
Reference in New Issue