mirror of
https://github.com/Icinga/icinga-php-library.git
synced 2025-07-20 04:04:33 +02:00
Remove patch for ramsey/collection
It's obsolte now since the raise to PHP 8.2
This commit is contained in:
parent
ce45fede7e
commit
7b1ea02863
@ -8,9 +8,6 @@
|
||||
"sort-packages": true,
|
||||
"platform": {
|
||||
"php": "8.2"
|
||||
},
|
||||
"allow-plugins": {
|
||||
"cweagans/composer-patches": true
|
||||
}
|
||||
},
|
||||
"require": {
|
||||
@ -22,8 +19,7 @@
|
||||
"ipl/sql": "^0.7.0",
|
||||
"ipl/stdlib": "^0.14.0",
|
||||
"ipl/validator": "^0.5.0",
|
||||
"ipl/web": "^0.10.0",
|
||||
"cweagans/composer-patches": "~1.0"
|
||||
"ipl/web": "^0.10.0"
|
||||
},
|
||||
"require-dev": {
|
||||
},
|
||||
@ -34,13 +30,5 @@
|
||||
"post-update-cmd": [
|
||||
"AssetLoader::update"
|
||||
]
|
||||
},
|
||||
"extra": {
|
||||
"composer-exit-on-patch-failure": true,
|
||||
"patches": {
|
||||
"ramsey/collection": {
|
||||
"Collection: Add PHP 8.1 support": "patches/ramsey-collection.patch"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,37 +0,0 @@
|
||||
--- 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;
|
||||
@@ -132,6 +133,11 @@ abstract class AbstractArray implements ArrayInterface
|
||||
return serialize($this->data);
|
||||
}
|
||||
|
||||
+ public function __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)
|
||||
+ {
|
||||
+ $this->unserialize($data);
|
||||
+ }
|
||||
+
|
||||
/**
|
||||
* Returns the number of items in this array.
|
||||
*
|
||||
--
|
||||
2.41.0
|
||||
|
Loading…
x
Reference in New Issue
Block a user