Skip to content

Commit

Permalink
Update Arrayable.php
Browse files Browse the repository at this point in the history
  • Loading branch information
raizdev authored Oct 31, 2022
1 parent 5544843 commit b99d393
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Traits/Arrayable.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ trait Arrayable
*
* @return Traversable The conifg as a traversable iterator
*/
#[\ReturnTypeWillChange]
public function getIterator()
{
return new ArrayIterator($this->config);
Expand All @@ -24,6 +25,7 @@ public function getIterator()
*
* @return bool
*/
#[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->config[$offset]);
Expand All @@ -36,6 +38,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
#[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return $this->config[$offset];
Expand All @@ -45,8 +48,9 @@ public function offsetGet($offset)
* Assign a value to the specified item at a specific offset.
*
* @param mixed $offset The offset to assign the value to
* @param mixed $value The value to set
* @param mixed $value The value to set
*/
#[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
$this->config[$offset] = $value;
Expand All @@ -57,6 +61,7 @@ public function offsetSet($offset, $value)
*
* @param $offset The offset to unset
*/
#[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->config[$offset]);
Expand Down

0 comments on commit b99d393

Please sign in to comment.