1 | <?php |
||
14 | class ArgumentParser |
||
15 | { |
||
16 | |||
17 | /** @var array */ |
||
18 | protected $arguments = []; |
||
19 | |||
20 | /** @var array */ |
||
21 | protected $config; |
||
22 | |||
23 | /** |
||
24 | * ArgumentParser constructor. |
||
25 | * @param array $argv |
||
26 | * @param Config $config |
||
27 | * @codeCoverageIgnore |
||
28 | */ |
||
29 | public function __construct($argv, $config) |
||
34 | |||
35 | /** |
||
36 | * @param array $argv |
||
37 | * @return ConsoleInterface |
||
38 | * @throws \Exception |
||
39 | * @codeCoverageIgnore |
||
40 | */ |
||
41 | protected function parseInput(array $argv) |
||
77 | |||
78 | /** |
||
79 | * @param string $arg |
||
80 | * @param string $value |
||
81 | * @codeCoverageIgnore |
||
82 | */ |
||
83 | public function set($arg, $value) |
||
87 | |||
88 | /** |
||
89 | * @param string $arg |
||
90 | * @return string |
||
91 | * @codeCoverageIgnore |
||
92 | */ |
||
93 | public function get($arg) |
||
101 | |||
102 | } |
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..