summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJaime Perez Crespo <jaime.perez@uninett.no>2015-08-05 15:02:19 +0200
committerJaime Perez Crespo <jaime.perez@uninett.no>2015-08-05 15:02:19 +0200
commit2ec19aabbe63f8c2a3dd9c92bf1ddbfa809a7352 (patch)
treee8f69d3cfb9bf5fb5a47b387c473d882eb69d32b
parentb2a27c03a43f1fa71d5fc733d7c732d133f737dd (diff)
downloadsimplesamlphp-2ec19aabbe63f8c2a3dd9c92bf1ddbfa809a7352.zip
simplesamlphp-2ec19aabbe63f8c2a3dd9c92bf1ddbfa809a7352.tar.gz
simplesamlphp-2ec19aabbe63f8c2a3dd9c92bf1ddbfa809a7352.tar.bz2
Fix an issue with data types returned by SimpleSAML_Store.
-rw-r--r--lib/SimpleSAML/SessionHandler.php1
-rw-r--r--lib/SimpleSAML/Store.php4
-rw-r--r--modules/saml/lib/SP/LogoutStore.php3
3 files changed, 5 insertions, 3 deletions
diff --git a/lib/SimpleSAML/SessionHandler.php b/lib/SimpleSAML/SessionHandler.php
index 6beb5c9..debfba0 100644
--- a/lib/SimpleSAML/SessionHandler.php
+++ b/lib/SimpleSAML/SessionHandler.php
@@ -110,6 +110,7 @@ abstract class SimpleSAML_SessionHandler
if ($store === false) {
self::$sessionHandler = new SimpleSAML_SessionHandlerPHP();
} else {
+ /** @var SimpleSAML_Store $store At this point, $store can only be an object */
self::$sessionHandler = new SimpleSAML_SessionHandlerStore($store);
}
}
diff --git a/lib/SimpleSAML/Store.php b/lib/SimpleSAML/Store.php
index 0b3b8bd..3d638d8 100644
--- a/lib/SimpleSAML/Store.php
+++ b/lib/SimpleSAML/Store.php
@@ -14,7 +14,7 @@ abstract class SimpleSAML_Store
*
* This is false if the data store isn't enabled, and null if we haven't attempted to initialize it.
*
- * @var SimpleSAML_Store|boolean|null
+ * @var SimpleSAML_Store|false|null
*/
private static $instance;
@@ -22,7 +22,7 @@ abstract class SimpleSAML_Store
/**
* Retrieve our singleton instance.
*
- * @return SimpleSAML_Store|boolean The data store, or false if it isn't enabled.
+ * @return SimpleSAML_Store|false The data store, or false if it isn't enabled.
*/
public static function getInstance()
{
diff --git a/modules/saml/lib/SP/LogoutStore.php b/modules/saml/lib/SP/LogoutStore.php
index fa78cdf..b471f60 100644
--- a/modules/saml/lib/SP/LogoutStore.php
+++ b/modules/saml/lib/SP/LogoutStore.php
@@ -125,7 +125,7 @@ class sspmod_saml_SP_LogoutStore {
/**
* Retrieve all session IDs from a key-value store.
*
- * @param SimpleSAML_Store_SQL $store The datastore.
+ * @param SimpleSAML_Store $store The datastore.
* @param string $authId The authsource ID.
* @param string $nameId The hash of the users NameID.
* @param array $sessionIndexes The session indexes.
@@ -234,6 +234,7 @@ class sspmod_saml_SP_LogoutStore {
/* We cannot fetch all sessions without a SQL store. */
return FALSE;
} else {
+ /** @var SimpleSAML_Store $sessions At this point the store cannot be false */
$sessions = self::getSessionsStore($store, $authId, $strNameId, $sessionIndexes);
}