From 24d856e6557f40077ffcc9b3a118892a193865cc Mon Sep 17 00:00:00 2001 From: Tim van Dijen <tvdijen@gmail.com> Date: Mon, 30 Aug 2021 23:14:11 +0200 Subject: [PATCH] Fix --- tests/lib/SimpleSAML/Store/SQLStoreTest.php | 5 ++--- tests/lib/SimpleSAML/Store/StoreFactoryTest.php | 3 ++- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/lib/SimpleSAML/Store/SQLStoreTest.php b/tests/lib/SimpleSAML/Store/SQLStoreTest.php index d8e43b732..84c91c185 100644 --- a/tests/lib/SimpleSAML/Store/SQLStoreTest.php +++ b/tests/lib/SimpleSAML/Store/SQLStoreTest.php @@ -8,7 +8,6 @@ use PHPUnit\Framework\TestCase; use SimpleSAML\Configuration; use SimpleSAML\Store; use SimpleSAML\Store\StoreFactory; -use SimpleSAML\Store\StoreInterface; /** * Tests for the SQL store. @@ -21,8 +20,8 @@ use SimpleSAML\Store\StoreInterface; */ class SQLStoreTest extends TestCase { - /** @var \SimpleSAML\Store\StoreInterface $store */ - private StoreInterface $store; + /** @var \SimpleSAML\Store\SQLStore $store */ + private Store\SQLStore $store; /** diff --git a/tests/lib/SimpleSAML/Store/StoreFactoryTest.php b/tests/lib/SimpleSAML/Store/StoreFactoryTest.php index e1f332831..347cf3992 100644 --- a/tests/lib/SimpleSAML/Store/StoreFactoryTest.php +++ b/tests/lib/SimpleSAML/Store/StoreFactoryTest.php @@ -77,6 +77,7 @@ class StoreFactoryTest extends TestCase 'store.redis.prefix' => 'phpunit_', ], '[ARRAY]', 'simplesaml'); + /** @psalm-var \SimpleSAML\Store\RedisStore $store */ $store = StoreFactory::getInstance(); $store->redis = $this->getMockBuilder(Client::class) ->setMethods(['get', 'set', 'setex', 'del', 'disconnect', '__destruct']) @@ -151,7 +152,7 @@ class StoreFactoryTest extends TestCase /** - * @param \SimpleSAML\Configuration|\SimpleSAML\Store\StoreFactory $service + * @param \SimpleSAML\Configuration|\SimpleSAML\Store\StoreInterface $service * @param class-string $className */ protected function clearInstance($service, string $className): void -- GitLab