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