Completed
Push — master ( 0ac5ab...0df983 )
by Joshua
10:16 queued 12s
created

PhpRedisCluster   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 9
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
3
4
namespace Noxlogic\RateLimitBundle\Service\Storage;
5
6
7
class PhpRedisCluster extends PhpRedis
8
{
9
10
    public function __construct(\RedisCluster $client)
11
    {
12
        $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
    }
14
15
}