Skip to content

Commit

Permalink
chore: type hint config repository return values
Browse files Browse the repository at this point in the history
Signed-off-by: Suhayb Wardany <me@suw.me>
  • Loading branch information
suwardany committed Feb 14, 2022
1 parent e7cb546 commit d30ff5b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Native/ConfigRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,31 +65,31 @@ protected function load()
/**
* {@inheritdoc}
*/
public function offsetExists($key)
public function offsetExists($key): bool
{
return isset($this->config[$key]);
}

/**
* {@inheritdoc}
*/
public function offsetGet($key)
public function offsetGet($key): mixed
{
return $this->config[$key];
}

/**
* {@inheritdoc}
*/
public function offsetSet($key, $value)
public function offsetSet($key, $value): void
{
$this->config[$key] = $value;
}

/**
* {@inheritdoc}
*/
public function offsetUnset($key)
public function offsetUnset($key): void
{
unset($this->config[$key]);
}
Expand Down

0 comments on commit d30ff5b

Please sign in to comment.