1 | <?php declare(strict_types=1); |
||
19 | class ProcessEnvironment |
||
20 | { |
||
21 | /** |
||
22 | * @var ValueProvider[] |
||
23 | */ |
||
24 | private $constants; |
||
25 | |||
26 | /** |
||
27 | * @var ValueProvider[] |
||
28 | */ |
||
29 | private $variables; |
||
30 | |||
31 | /** |
||
32 | * @var Template[] |
||
33 | */ |
||
34 | private $templates; |
||
35 | |||
36 | /** |
||
37 | * @var array |
||
38 | */ |
||
39 | private $dotenvVariables; |
||
40 | |||
41 | /** |
||
42 | * @param array $constants |
||
43 | * @param array $variables |
||
44 | * @param array $templates |
||
45 | * @param array $dotenvPaths |
||
46 | */ |
||
47 | public function __construct(array $constants, array $variables, array $templates, array $dotenvPaths) |
||
54 | |||
55 | /** |
||
56 | * @param array $constants |
||
57 | * @return ValueProvider[] |
||
58 | */ |
||
59 | private function initializeConstants(array $constants): array |
||
68 | |||
69 | /** |
||
70 | * @param array $variables |
||
71 | * @return ValueProvider[] |
||
72 | */ |
||
73 | private function initializeVariables(array $variables): array |
||
83 | |||
84 | /** |
||
85 | * @param ScriptPath[] $dotenvPaths |
||
86 | * |
||
87 | * @return array |
||
88 | */ |
||
89 | private function initializeDotenvVariables(array $dotenvPaths): array |
||
103 | |||
104 | /** |
||
105 | * @param array $templates |
||
106 | * @return ValueProvider[] |
||
107 | */ |
||
108 | private function initializeTemplates(array $templates): array |
||
117 | |||
118 | /** |
||
119 | * @return ValueProvider[] |
||
120 | */ |
||
121 | public function getAllValues(): array |
||
129 | |||
130 | /** |
||
131 | * @return Template[] |
||
132 | */ |
||
133 | public function getTemplates(): array |
||
137 | |||
138 | /** |
||
139 | * @param string $shellCommand |
||
140 | * @return Process |
||
141 | */ |
||
142 | public function createProcess(string $shellCommand): Process |
||
146 | |||
147 | /** |
||
148 | * @param ScriptPath $dotenvPath |
||
149 | * |
||
150 | * @return array |
||
151 | */ |
||
152 | private function getDotenvVariables(ScriptPath $dotenvPath): array |
||
171 | } |
||
172 |
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..