Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions includes/config.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ private function checkOffset($offset)
}
}

public function offsetExists($offset)
public function offsetExists($offset): bool
{
if (isset($this->vars[$offset]))
{
Expand Down Expand Up @@ -120,7 +120,7 @@ protected function loadOffset($offset)
return $this->offsetGet($offset);
}

public function offsetGet($offset)
public function offsetGet($offset): mixed
{
if (!isset($this->vars[$offset]))
{
Expand All @@ -141,7 +141,7 @@ public function offsetGet($offset)
}
}

public function getIterator()
public function getIterator(): Traversable
{
if (is_dir($this->dir))
{
Expand All @@ -166,12 +166,12 @@ public function getIterator()
return new ArrayIterator($iteratorVars);
}

public function offsetSet($offset, $value)
public function offsetSet($offset, $value): void
{
throw new Exception('Config may not be changed');
}

public function offsetUnset($offset)
public function offsetUnset($offset): void
{
throw new Exception('Config may not be changed');
}
Expand Down
1 change: 1 addition & 0 deletions sources/postgresql.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ class postgresql extends source implements source_rrd
private $user;
private $password;
private $dbname;
private $db;

private $backendworking;
private $backendwaiting;
Expand Down