Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
overtrue committed Mar 4, 2022
1 parent 1607bc8 commit 92cfd99
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,26 +86,30 @@ public function has(string $key): bool
return (bool) $this->get($key);
}

public function offsetExists($offset)
public function offsetExists($offset): bool
{
return array_key_exists($offset, $this->config);
}

#[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return $this->get($offset);
}

#[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
$this->set($offset, $value);
}

#[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
$this->set($offset, null);
}

#[\ReturnTypeWillChange]
public function jsonSerialize()
{
return $this->config;
Expand Down

0 comments on commit 92cfd99

Please sign in to comment.