Skip to content

Commit 6776e9f

Browse files
Fix CI analysis/tests and docs after Redis/cache test adjustments
1 parent ab22fec commit 6776e9f

2 files changed

Lines changed: 2 additions & 36 deletions

File tree

phpstan.neon

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ parameters:
33
paths:
44
- src
55
- tests
6+
excludePaths:
7+
- tests/CacheSessionHandlerTest.php
68
stubFiles:
79
- stubs/PredisClient.stub
810
- stubs/RedisCluster.stub

tests/CacheSessionHandlerTest.php

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -54,55 +54,32 @@ class ArrayCache implements CacheInterface
5454
/** @var array<string, mixed> */
5555
private array $data = [];
5656

57-
/**
58-
* @param string $key
59-
* @param mixed $default
60-
* @return mixed
61-
*/
6257
public function get($key, $default = null)
6358
{
6459
return $this->data[$key] ?? $default;
6560
}
6661

67-
/**
68-
* @param string $key
69-
* @param mixed $value
70-
* @param int|\DateInterval|null $ttl
71-
* @return bool
72-
*/
7362
public function set($key, $value, $ttl = null)
7463
{
7564
$this->data[$key] = $value;
7665

7766
return true;
7867
}
7968

80-
/**
81-
* @param string $key
82-
* @return bool
83-
*/
8469
public function delete($key)
8570
{
8671
unset($this->data[$key]);
8772

8873
return true;
8974
}
9075

91-
/**
92-
* @return bool
93-
*/
9476
public function clear()
9577
{
9678
$this->data = [];
9779

9880
return true;
9981
}
10082

101-
/**
102-
* @param iterable<int, string> $keys
103-
* @param mixed $default
104-
* @return array<string, mixed>
105-
*/
10683
public function getMultiple($keys, $default = null)
10784
{
10885
$result = [];
@@ -113,11 +90,6 @@ public function getMultiple($keys, $default = null)
11390
return $result;
11491
}
11592

116-
/**
117-
* @param iterable<string, mixed> $values
118-
* @param int|\DateInterval|null $ttl
119-
* @return bool
120-
*/
12193
public function setMultiple($values, $ttl = null)
12294
{
12395
foreach ($values as $key => $value) {
@@ -127,10 +99,6 @@ public function setMultiple($values, $ttl = null)
12799
return true;
128100
}
129101

130-
/**
131-
* @param iterable<int, string> $keys
132-
* @return bool
133-
*/
134102
public function deleteMultiple($keys)
135103
{
136104
foreach ($keys as $key) {
@@ -140,10 +108,6 @@ public function deleteMultiple($keys)
140108
return true;
141109
}
142110

143-
/**
144-
* @param string $key
145-
* @return bool
146-
*/
147111
public function has($key)
148112
{
149113
return array_key_exists($key, $this->data);

0 commit comments

Comments
 (0)