Skip to content

Commit

Permalink
Merge pull request #75 from number201724/master
Browse files Browse the repository at this point in the history
fix php 8.x Deprecated warning
  • Loading branch information
fukuball authored Aug 15, 2022
2 parents 3ed88d6 + a94907e commit 44d62bd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/vendor/multi-array/MultiArray.php
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ private function inCache($keyString)
* @return Traversable An instance of an object implementing <b>Iterator</b> or
* <b>Traversable</b>
*/
public function getIterator()
public function getIterator() : Traversable
{
return new ArrayIterator($this->storage);
}
Expand Down Expand Up @@ -321,7 +321,7 @@ function jsonSerialize()
* <p>
* The return value will be casted to boolean if non-boolean was returned.
*/
public function offsetExists($offset)
public function offsetExists($offset) : bool
{
return $this->exists($offset);
}
Expand All @@ -335,7 +335,7 @@ public function offsetExists($offset)
* </p>
* @return mixed Can return all value types.
*/
public function offsetGet($offset)
public function offsetGet($offset) : mixed
{
return $this->get($offset);
}
Expand All @@ -352,7 +352,7 @@ public function offsetGet($offset)
* </p>
* @return void
*/
public function offsetSet($offset, $value)
public function offsetSet($offset, $value) : void
{
$this->set($offset, $value);
}
Expand All @@ -366,7 +366,7 @@ public function offsetSet($offset, $value)
* </p>
* @return void
*/
public function offsetUnset($offset)
public function offsetUnset($offset) : void
{
$this->remove($offset);
}
Expand Down

0 comments on commit 44d62bd

Please sign in to comment.