1 | <?php namespace Understand\UnderstandLaravel5; |
||
3 | class DataCollector |
||
4 | { |
||
5 | |||
6 | /** |
||
7 | * Current token |
||
8 | * |
||
9 | * @var type |
||
10 | */ |
||
11 | protected $data = []; |
||
12 | |||
13 | /** |
||
14 | * @var int |
||
15 | */ |
||
16 | protected $limit = 50; |
||
17 | |||
18 | /** |
||
19 | * @param $limit |
||
20 | */ |
||
21 | public function setLimit($limit) |
||
25 | |||
26 | /** |
||
27 | * @return void |
||
28 | */ |
||
29 | public function reset() |
||
33 | |||
34 | /** |
||
35 | * @param $key |
||
36 | * @param $value |
||
37 | */ |
||
38 | public function set($key, $value) |
||
42 | |||
43 | /** |
||
44 | * @param $key |
||
45 | * @param $value |
||
46 | */ |
||
47 | public function setInArray($key, $value) |
||
56 | |||
57 | /** |
||
58 | * @param $key |
||
59 | * @return mixed |
||
60 | */ |
||
61 | public function getByKey($key) |
||
68 | } |
||
69 |
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..