summaryrefslogtreecommitdiff
path: root/vendor/j4mie
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2022-07-12 22:26:21 +0300
committerAndrew Dolgov <[email protected]>2022-07-12 22:26:21 +0300
commit80d3db1dcf8fe9ca66d4e3f2e2116d3bc39ae2b4 (patch)
tree04b33bfb9c9368c4a31e287153abec690b9014e0 /vendor/j4mie
parent4b6161892000cb2b8392dce92a9cf2cabdf2d20e (diff)
upgrade idiorm to php8.1-patched version (aaronpk/idiorm)
Diffstat (limited to 'vendor/j4mie')
-rw-r--r--vendor/j4mie/idiorm/idiorm.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/vendor/j4mie/idiorm/idiorm.php b/vendor/j4mie/idiorm/idiorm.php
index 2b1f38ca0..06253020c 100644
--- a/vendor/j4mie/idiorm/idiorm.php
+++ b/vendor/j4mie/idiorm/idiorm.php
@@ -2209,14 +2209,17 @@
// --- ArrayAccess --- //
// --------------------- //
+ #[\ReturnTypeWillChange]
public function offsetExists($key) {
return array_key_exists($key, $this->_data);
}
+ #[\ReturnTypeWillChange]
public function offsetGet($key) {
return $this->get($key);
}
+ #[\ReturnTypeWillChange]
public function offsetSet($key, $value) {
if(is_null($key)) {
throw new InvalidArgumentException('You must specify a key/array index.');
@@ -2224,6 +2227,7 @@
$this->set($key, $value);
}
+ #[\ReturnTypeWillChange]
public function offsetUnset($key) {
unset($this->_data[$key]);
unset($this->_dirty_fields[$key]);
@@ -2445,6 +2449,7 @@
* Get the number of records in the result set
* @return int
*/
+ #[\ReturnTypeWillChange]
public function count() {
return count($this->_results);
}
@@ -2454,6 +2459,7 @@
* over the result set.
* @return \ArrayIterator
*/
+ #[\ReturnTypeWillChange]
public function getIterator() {
return new ArrayIterator($this->_results);
}
@@ -2463,6 +2469,7 @@
* @param int|string $offset
* @return bool
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset) {
return isset($this->_results[$offset]);
}
@@ -2472,6 +2479,7 @@
* @param int|string $offset
* @return mixed
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset) {
return $this->_results[$offset];
}
@@ -2481,6 +2489,7 @@
* @param int|string $offset
* @param mixed $value
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value) {
$this->_results[$offset] = $value;
}
@@ -2489,10 +2498,19 @@
* ArrayAccess
* @param int|string $offset
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset) {
unset($this->_results[$offset]);
}
+ public function __serialize() {
+ return $this->serialize();
+ }
+
+ public function __unserialize($data) {
+ $this->unserialize($data);
+ }
+
/**
* Serializable
* @return string