Completed
Pull Request — master (#106)
by Benedikt
01:39
created

PhpRedisCluster::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 1
1
<?php
2
3
4
namespace Noxlogic\RateLimitBundle\Service\Storage;
5
6
7
class PhpRedisCluster extends PhpRedis
8
{
9
10 5
    public function __construct(\RedisCluster $client)
11
    {
12 5
        $this->client = $client;
0 ignored issues
show
Documentation Bug introduced by
It seems like $client of type object<RedisCluster> is incompatible with the declared type object<Redis> of property $client.

Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.

Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..

Loading history...
13 5
    }
14
15
}