1 | <?php declare(strict_types=1); |
||
10 | class ProcessEnvironment |
||
11 | { |
||
12 | /** |
||
13 | * @var ValueProvider[] |
||
14 | */ |
||
15 | private $constants; |
||
16 | |||
17 | /** |
||
18 | * @var ValueProvider[] |
||
19 | */ |
||
20 | private $variables; |
||
21 | |||
22 | /** |
||
23 | * @var Template[] |
||
24 | */ |
||
25 | private $templates; |
||
26 | |||
27 | /** |
||
28 | * @param array $constants |
||
29 | * @param array $variables |
||
30 | * @param array $templates |
||
31 | */ |
||
32 | public function __construct(array $constants, array $variables, array $templates) |
||
38 | |||
39 | /** |
||
40 | * @param array $constants |
||
41 | * @return ValueProvider[] |
||
42 | */ |
||
43 | private function initializeConstants(array $constants): array |
||
52 | |||
53 | /** |
||
54 | * @param array $variables |
||
55 | * @return ValueProvider[] |
||
56 | */ |
||
57 | private function initializeVariables(array $variables): array |
||
67 | |||
68 | /** |
||
69 | * @param array $templates |
||
70 | * @return ValueProvider[] |
||
71 | */ |
||
72 | private function initializeTemplates(array $templates): array |
||
81 | |||
82 | /** |
||
83 | * @return ValueProvider[] |
||
84 | */ |
||
85 | public function getAllValues(): array |
||
92 | |||
93 | /** |
||
94 | * @return Template[] |
||
95 | */ |
||
96 | public function getTemplates(): array |
||
100 | |||
101 | /** |
||
102 | * @param string $shellCommand |
||
103 | * @return Process |
||
104 | */ |
||
105 | public function createProcess(string $shellCommand): Process |
||
109 | } |
||
110 |
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..