Total Complexity | 5 |
Total Lines | 41 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
5 | class Chain |
||
6 | { |
||
7 | /** |
||
8 | * @var \Imanghafoori\HeyMan\Chain |
||
9 | */ |
||
10 | private $chainInfo = []; |
||
11 | |||
12 | public function startChain() |
||
15 | } |
||
16 | |||
17 | public function get($key) |
||
20 | } |
||
21 | |||
22 | public function set($key, $value) |
||
23 | { |
||
24 | $this->chainInfo[$key] = $value; |
||
25 | } |
||
26 | |||
27 | public function push($key, $value) |
||
30 | } |
||
31 | |||
32 | |||
33 | /** |
||
34 | * ViewEventManager constructor. |
||
35 | * |
||
36 | * @param $manager |
||
37 | * @param array $values |
||
38 | * @param string $param |
||
39 | * |
||
40 | */ |
||
41 | public function init($manager, array $values, string $param = 'default') |
||
46 | } |
||
47 | } |
||
48 |
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..