Skip to content

Commit 4912edb

Browse files
committed
Fixes
1 parent 006cb26 commit 4912edb

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,8 @@ public function resetSlowlog(): bool {
351351

352352
/**
353353
* @return array<int, string>
354+
*
355+
* @throws RedisClusterException
354356
*/
355357
public function getCommands(): array {
356358
$commands = $this->rawcommand($this->nodes[0], 'COMMAND');

src/functions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ function autoload(string $path): void {
5454
});
5555
}
5656

57-
if (!extension_loaded('xdebug') && PHP_SAPI !== 'cli') {
57+
if (PHP_SAPI !== 'cli' && !extension_loaded('xdebug')) {
5858
set_error_handler(static function (int $errno, string $errstr, string $errfile, int $errline): bool {
5959
if ((error_reporting() & $errno) === 0) {
6060
return false;

tests/Dashboards/Redis/PredisTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@
1111
use Predis\Client;
1212

1313
final class PredisTest extends RedisTestCase {
14+
protected string $client = 'predis';
15+
1416
public static function setUpBeforeClass(): void {
1517
parent::setUpBeforeClass();
1618

1719
if (!class_exists(Client::class)) {
1820
self::markTestSkipped('Predis is not installed. Skipping tests.');
1921
}
2022
}
21-
22-
protected string $client = 'predis';
2323
}

0 commit comments

Comments
 (0)