diff --git a/includes/config.class.php b/includes/config.class.php index 4adc8f6..bf6de37 100644 --- a/includes/config.class.php +++ b/includes/config.class.php @@ -62,7 +62,7 @@ private function checkOffset($offset) } } - public function offsetExists($offset) + public function offsetExists($offset): bool { if (isset($this->vars[$offset])) { @@ -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])) { @@ -141,7 +141,7 @@ public function offsetGet($offset) } } - public function getIterator() + public function getIterator(): Traversable { if (is_dir($this->dir)) { @@ -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'); } diff --git a/sources/postgresql.php b/sources/postgresql.php index fed60ae..231457f 100644 --- a/sources/postgresql.php +++ b/sources/postgresql.php @@ -46,6 +46,7 @@ class postgresql extends source implements source_rrd private $user; private $password; private $dbname; + private $db; private $backendworking; private $backendwaiting;