From 9d327f86b137da4e22ff2d0162e6e30885b4059c Mon Sep 17 00:00:00 2001 From: Tim van Dijen <tvdijen@gmail.com> Date: Sat, 2 Feb 2019 19:59:34 +0100 Subject: [PATCH] Fixes for lib/SimpleSAML/Store --- lib/SimpleSAML/Store/Memcache.php | 4 +++- lib/SimpleSAML/Store/Redis.php | 4 ++++ lib/SimpleSAML/Store/SQL.php | 7 +++++++ 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/lib/SimpleSAML/Store/Memcache.php b/lib/SimpleSAML/Store/Memcache.php index 209ae762f..01739072e 100644 --- a/lib/SimpleSAML/Store/Memcache.php +++ b/lib/SimpleSAML/Store/Memcache.php @@ -52,7 +52,8 @@ class Memcache extends Store * @param string $type The data type. * @param string $key The key. * @param mixed $value The value. - * @param int|NULL $expire The expiration time (unix timestamp), or NULL if it never expires. + * @param int|null $expire The expiration time (unix timestamp), or NULL if it never expires. + * @return void */ public function set($type, $key, $value, $expire = null) { @@ -73,6 +74,7 @@ class Memcache extends Store * * @param string $type The data type. * @param string $key The key. + * @return void */ public function delete($type, $key) { diff --git a/lib/SimpleSAML/Store/Redis.php b/lib/SimpleSAML/Store/Redis.php index 310caa98f..53c27f454 100644 --- a/lib/SimpleSAML/Store/Redis.php +++ b/lib/SimpleSAML/Store/Redis.php @@ -12,10 +12,12 @@ use \SimpleSAML\Store; */ class Redis extends Store { + /** @var \Predis\Client */ public $redis; /** * Initialize the Redis data store. + * @param \Predis\Client|null $redis */ public function __construct($redis = null) { @@ -87,6 +89,7 @@ class Redis extends Store * @param string $key The key to insert. * @param mixed $value The value itself. * @param int|null $expire The expiration time (unix timestamp), or null if it never expires. + * @return void */ public function set($type, $key, $value, $expire = null) { @@ -109,6 +112,7 @@ class Redis extends Store * * @param string $type The type of the data * @param string $key The key to delete. + * @return void */ public function delete($type, $key) { diff --git a/lib/SimpleSAML/Store/SQL.php b/lib/SimpleSAML/Store/SQL.php index 72bb84248..175d15c67 100644 --- a/lib/SimpleSAML/Store/SQL.php +++ b/lib/SimpleSAML/Store/SQL.php @@ -77,6 +77,7 @@ class SQL extends Store /** * Initialize the table-version table. + * @return void */ private function initTableVersionTable() { @@ -100,6 +101,7 @@ class SQL extends Store /** * Initialize key-value table. + * @return void */ private function initKVTable() { @@ -185,6 +187,7 @@ class SQL extends Store * * @param string $name Table name. * @param int $version Table version. + * @return void */ public function setTableVersion($name, $version) { @@ -208,6 +211,7 @@ class SQL extends Store * @param string $table The table we should update. * @param array $keys The key columns. * @param array $data Associative array with columns. + * @return void */ public function insertOrUpdate($table, array $keys, array $data) { @@ -266,6 +270,7 @@ class SQL extends Store /** * Clean the key-value table of expired entries. + * @return void */ private function cleanKVStore() { @@ -329,6 +334,7 @@ class SQL extends Store * @param string $key The key to insert. * @param mixed $value The value itself. * @param int|null $expire The expiration time (unix timestamp), or null if it never expires. + * @return void */ public function set($type, $key, $value, $expire = null) { @@ -367,6 +373,7 @@ class SQL extends Store * * @param string $type The type of the data * @param string $key The key to delete. + * @return void */ public function delete($type, $key) { -- GitLab