Skip to content

Commit e71c07f

Browse files
committed
Fix CI
1 parent 04ea566 commit e71c07f

4 files changed

Lines changed: 7 additions & 3 deletions

File tree

composer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@
4848
"predis/predis": "~3.3",
4949
"simplesamlphp/simplesamlphp-test-framework": "^1.11"
5050
},
51+
"suggest": {
52+
"predis/predis": "Needed if a Redis server is used to store session information"
53+
},
5154
"support": {
5255
"issues": "https://github.com/simplesamlphp/simplesamlphp-module-consent/issues",
5356
"source": "https://github.com/simplesamlphp/simplesamlphp-module-consent"

src/Consent/Store/Redis.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
use SimpleSAML\Configuration;
1111
use SimpleSAML\Logger;
1212

13-
use function class_exists;
1413
use function count;
1514

1615
/**
@@ -270,7 +269,7 @@ public function saveConsent(string $userId, string $destinationId, string $attri
270269
}
271270

272271
return true;
273-
} catch (\Exception $e) {
272+
} catch (Exception $e) {
274273
Logger::error('consent:Redis - Failed to save consent: ' . $e->getMessage());
275274
return false;
276275
}

tests/src/Consent/Store/RedisTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ protected function setUp(): void
3232
/*
3333
* Create a mock Redis client that simulates the behavior of a Redis server.
3434
* This allows us to test the Redis store without needing an actual Redis server.
35-
* The @method annotations are directly from https://github.com/predis/predis/blob/v3.6.0/src/ClientInterface.php
35+
* The @method annotations are directly from
36+
* https://github.com/predis/predis/blob/v3.6.0/src/ClientInterface.php
3637
*/
3738
$this->client = new class () extends Client {
3839
/** @var array<string, mixed> */
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
22
"symbol-whitelist": [
3+
"Predis\\Client"
34
]
45
}

0 commit comments

Comments
 (0)