1 | <?php |
||
7 | abstract class Driver { |
||
8 | /** @var ChangelogParser\Parser\Parser **/ |
||
9 | protected $parser; |
||
10 | /** @var string **/ |
||
11 | protected $storagePath; |
||
12 | |||
13 | 5 | public function __construct() { |
|
16 | |||
17 | /** |
||
18 | * @param string $storagePath |
||
19 | * @return \ChangelogParser\Driver\Driver |
||
20 | */ |
||
21 | 5 | public function setStoragePath($storagePath) { |
|
26 | |||
27 | /** |
||
28 | * @return string |
||
29 | */ |
||
30 | public function getStoragePath() { |
||
33 | |||
34 | /** |
||
35 | * @param array $data |
||
36 | * @return string |
||
37 | */ |
||
38 | abstract protected function formatData($data); |
||
39 | |||
40 | /** |
||
41 | * @return mixed |
||
42 | */ |
||
43 | abstract protected function getLastVersion(); |
||
44 | |||
45 | /** |
||
46 | * @return mixed |
||
47 | */ |
||
48 | abstract protected function getAllVersions(); |
||
49 | |||
50 | /** |
||
51 | * @param string $filepath |
||
52 | */ |
||
53 | 3 | public function convert($filepath) { |
|
57 | |||
58 | /** |
||
59 | * @param mixed $data |
||
60 | */ |
||
61 | 3 | protected function storeResults($data) { |
|
67 | } |
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..