Skip to content

Commit 2d0c4e6

Browse files
committed
Fix phpstan error
1 parent b5d89cb commit 2d0c4e6

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

phpstan.neon

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,3 @@ parameters:
44
paths:
55
- src
66
- tests
7-
ignoreErrors:
8-
-
9-
message: '~^Method RedisCluster::(info|rawcommand)\(\) invoked with \d+ parameters, .* required\.$~'
10-
path: src/Dashboards/Redis/Compatibility/Cluster/RedisCluster.php

src/Admin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
use RobiNN\Pca\Dashboards\DashboardInterface;
1212

1313
class Admin {
14-
public const VERSION = '2.4.1';
14+
public const VERSION = '2.4.2';
1515

1616
private readonly Template $template;
1717

src/Dashboards/Redis/Compatibility/Cluster/RedisCluster.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,9 @@ public function getSlowlog(int $count): ?array {
299299
return $all_logs;
300300
}
301301

302+
/**
303+
* @throws RedisClusterException
304+
*/
302305
public function resetSlowlog(): bool {
303306
foreach ($this->nodes as $node) {
304307
$this->rawcommand($node, 'SLOWLOG', 'RESET');

0 commit comments

Comments
 (0)