diff --git a/library/Zend/Session/SaveHandler/DbTable.php b/library/Zend/Session/SaveHandler/DbTable.php index 0efdbc08f4..df627a0a14 100644 --- a/library/Zend/Session/SaveHandler/DbTable.php +++ b/library/Zend/Session/SaveHandler/DbTable.php @@ -290,7 +290,7 @@ public function getOverrideLifetime() * @param string $name * @return boolean */ - public function open($save_path, $name) + public function open($save_path, $name): bool { $this->_sessionSavePath = $save_path; $this->_sessionName = $name; @@ -303,7 +303,7 @@ public function open($save_path, $name) * * @return boolean */ - public function close() + public function close(): bool { return true; } @@ -314,7 +314,7 @@ public function close() * @param string $id * @return string */ - public function read($id) + public function read($id): string { $return = ''; @@ -338,7 +338,7 @@ public function read($id) * @param string $data * @return boolean */ - public function write($id, $data) + public function write($id, $data): bool { $data = [$this->_modifiedColumn => time(), $this->_dataColumn => (string) $data]; @@ -366,7 +366,7 @@ public function write($id, $data) * @param string $id * @return boolean */ - public function destroy($id) + public function destroy($id): bool { $this->delete($this->_getPrimary($id, self::PRIMARY_TYPE_WHERECLAUSE)); return true; //always return true, since if nothing can be deleted, it is already deleted and thats OK. @@ -378,7 +378,7 @@ public function destroy($id) * @param int $maxlifetime * @return true */ - public function gc($maxlifetime) + public function gc($maxlifetime): int|false { $this->delete($this->getAdapter()->quoteIdentifier($this->_modifiedColumn, true) . ' + ' . $this->getAdapter()->quoteIdentifier($this->_lifetimeColumn, true) . ' < '