Skip to content
Snippets Groups Projects
Commit 063ec03d authored by Tim van Dijen's avatar Tim van Dijen
Browse files

Remove or suppress unused param

parent 3315dfdd
No related branches found
No related tags found
No related merge requests found
......@@ -47,7 +47,7 @@ abstract class ProcessingFilter
* @param array &$config Configuration for this filter.
* @param mixed $reserved For future use.
*/
public function __construct(array &$config, $reserved)
public function __construct(array &$config, /** @scrutinizer ignore-unused */ $reserved)
{
if (array_key_exists('%priority', $config)) {
$this->priority = $config['%priority'];
......
......@@ -58,7 +58,7 @@ class MetaDataStorageHandlerPdo extends MetaDataStorageSource
*
* @param array $config An associative array with the configuration for this handler.
*/
public function __construct(array $config)
public function __construct(/** @scrutinizer ignore-unused */ array $config)
{
$this->db = Database::getInstance();
}
......
......@@ -19,7 +19,7 @@ abstract class Output
*
* @param \SimpleSAML\Configuration $config The configuration for this output.
*/
public function __construct(Configuration $config)
public function __construct(/** @scrutinizer ignore-unused */ Configuration $config)
{
// do nothing by default
}
......
......@@ -291,14 +291,12 @@ class LogoutStore
* Retrieve all session IDs from a key-value store.
*
* @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.
* @return array Associative array of SessionIndex => SessionId.
*/
private static function getSessionsStore(
Store $store,
string $authId,
string $nameId,
array $sessionIndexes
): array {
......@@ -412,7 +410,7 @@ class LogoutStore
// We cannot fetch all sessions without a SQL store
return false;
}
$sessions = self::getSessionsStore($store, $authId, $strNameId, $sessionIndexes);
$sessions = self::getSessionsStore($store, $strNameId, $sessionIndexes);
}
if (empty($sessionIndexes)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment