diff options
author | Andrew Dolgov <[email protected]> | 2021-12-01 13:37:35 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-12-01 13:37:35 +0300 |
commit | a201e10ee024f03fb6aad0ec1069cc4da72a9ac5 (patch) | |
tree | 1d0c5549390541694721e5d85e35f509feccc4ee /vendor/j4mie | |
parent | aaebe55456b34b878b7bcccef021af7f2c8d3a75 (diff) |
Revert "various fixes vor php 8.1 compatibility"
This reverts commit 14027ae04e4aee6cf1c3a4ff9a390ec266c0fb09.
Diffstat (limited to 'vendor/j4mie')
-rw-r--r-- | vendor/j4mie/idiorm/idiorm.php | 44 |
1 files changed, 18 insertions, 26 deletions
diff --git a/vendor/j4mie/idiorm/idiorm.php b/vendor/j4mie/idiorm/idiorm.php index 74fc7fcc7..2b1f38ca0 100644 --- a/vendor/j4mie/idiorm/idiorm.php +++ b/vendor/j4mie/idiorm/idiorm.php @@ -2209,24 +2209,24 @@ // --- ArrayAccess --- // // --------------------- // - public function offsetExists(mixed $offset): bool { - return array_key_exists($offset, $this->_data); + public function offsetExists($key) { + return array_key_exists($key, $this->_data); } - public function offsetGet(mixed $offset): mixed { - return $this->get($offset); + public function offsetGet($key) { + return $this->get($key); } - public function offsetSet(mixed $offset, mixed $value): void { - if(is_null($offset)) { + public function offsetSet($key, $value) { + if(is_null($key)) { throw new InvalidArgumentException('You must specify a key/array index.'); } - $this->set($offset, $value); + $this->set($key, $value); } - public function offsetUnset(mixed $offset): void { - unset($this->_data[$offset]); - unset($this->_dirty_fields[$offset]); + public function offsetUnset($key) { + unset($this->_data[$key]); + unset($this->_dirty_fields[$key]); } // --------------------- // @@ -2445,7 +2445,7 @@ * Get the number of records in the result set * @return int */ - public function count(): int { + public function count() { return count($this->_results); } @@ -2454,7 +2454,7 @@ * over the result set. * @return \ArrayIterator */ - public function getIterator(): Traversable { + public function getIterator() { return new ArrayIterator($this->_results); } @@ -2463,7 +2463,7 @@ * @param int|string $offset * @return bool */ - public function offsetExists(mixed $offset): bool { + public function offsetExists($offset) { return isset($this->_results[$offset]); } @@ -2472,33 +2472,25 @@ * @param int|string $offset * @return mixed */ - public function offsetGet(mixed $offset): mixed { + public function offsetGet($offset) { return $this->_results[$offset]; } /** * ArrayAccess - * @param mixed $offset + * @param int|string $offset * @param mixed $value */ - public function offsetSet(mixed $offset, mixed $value): void { + public function offsetSet($offset, $value) { $this->_results[$offset] = $value; } /** * ArrayAccess - * @param mixed $offset + * @param int|string $offset */ - public function offsetUnset(mixed $offset): void { + public function offsetUnset($offset) { unset($this->_results[$offset]); - } - - public function __serialize() { - return $this->serialize(); - } - - public function __unserialize($data) { - $this->unserialize($data); } /** |