Total Complexity | 4 |
Total Lines | 25 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
5 | class ChainManager |
||
6 | { |
||
7 | /** |
||
8 | * @var \Imanghafoori\HeyMan\Chain |
||
9 | */ |
||
10 | private $chainInfo = []; |
||
11 | |||
12 | 105 | public function startChain() |
|
13 | { |
||
14 | 105 | $this->chainInfo = []; |
|
|
|||
15 | 105 | } |
|
16 | |||
17 | 104 | public function get($key) |
|
18 | { |
||
19 | 104 | return $this->chainInfo[$key] ?? null; |
|
20 | } |
||
21 | |||
22 | 104 | public function set($key, $value) |
|
25 | 104 | } |
|
26 | |||
27 | 90 | public function push($key, $value) |
|
30 | 90 | } |
|
31 | } |
||
32 |
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..