Skip to content

Commit 3f81687

Browse files
committed
fix: use phpcs for warnings
1 parent 7f597e3 commit 3f81687

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/DependencyInjection/SncRedisExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
use InvalidArgumentException;
1717
use LogicException;
1818
use Predis\Client;
19+
use Redis;
1920
use RedisSentinel;
2021
use Relay\Sentinel;
2122
use Snc\RedisBundle\DependencyInjection\Configuration\Configuration;
@@ -31,7 +32,6 @@
3132
use Symfony\Component\DependencyInjection\Extension\Extension;
3233
use Symfony\Component\DependencyInjection\Loader\PhpFileLoader;
3334
use Symfony\Component\DependencyInjection\Reference;
34-
use Redis;
3535

3636
use function array_map;
3737
use function assert;

tests/Factory/PhpredisClientFactoryTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -469,13 +469,13 @@ public function testCreateWithConnectionPersistentFalse(): void
469469
$this->assertNull($client->getPersistentID());
470470
}
471471

472-
public function testScanOption()
472+
public function testScanOption(): void
473473
{
474474
$factory = new PhpredisClientFactory(new RedisCallInterceptor($this->redisLogger));
475475
$options = [
476476
'connection_timeout' => 0.0,
477477
'connection_persistent' => false,
478-
'scan' => 'prefix'
478+
'scan' => 'prefix',
479479
];
480480

481481
$client = $factory->create(Redis::class, ['redis://localhost:6379'], $options, 'default', false);

0 commit comments

Comments
 (0)