1 | <?php |
||
15 | class BuildCommand { |
||
16 | /** @var BuildContext $buildContext */ |
||
17 | protected $buildContext; |
||
18 | |||
19 | /** @var string $executable */ |
||
20 | protected $executable = 'bin%ssatis'; |
||
21 | |||
22 | /** @var string $command */ |
||
23 | protected $command = 'build'; |
||
24 | |||
25 | /** @var string $configPath */ |
||
26 | protected $configPath; |
||
27 | |||
28 | /** @var string $configPath */ |
||
29 | protected $buildDirectory; |
||
30 | |||
31 | /** @var \Illuminate\Support\Collection $proxySettings */ |
||
32 | protected $proxySettings; |
||
33 | |||
34 | /** @var string $item */ |
||
35 | protected $item; |
||
36 | |||
37 | /** @var string $directory */ |
||
38 | protected $directory; |
||
39 | |||
40 | /** @var string $currentDirectory */ |
||
41 | protected $currentDirectory; |
||
42 | |||
43 | /** @var \Monolog\Logger $logger */ |
||
44 | protected $logger; |
||
45 | |||
46 | /** @var string $logFile */ |
||
47 | protected $logFile; |
||
48 | |||
49 | /** @var array $commandOutput */ |
||
50 | protected $commandOutput = []; |
||
51 | |||
52 | /** |
||
53 | * @param CommandContextInterface $commandContext |
||
54 | * @return Collection |
||
55 | */ |
||
56 | protected function compile(CommandContextInterface $commandContext) { |
||
91 | |||
92 | /** |
||
93 | * @return \Monolog\Logger |
||
94 | */ |
||
95 | protected function getLogger() { |
||
98 | |||
99 | /** |
||
100 | * @return bool |
||
101 | */ |
||
102 | protected function isWindows() { |
||
105 | |||
106 | /** |
||
107 | * @param CommandContextInterface $commandContext |
||
108 | * @return mixed |
||
109 | */ |
||
110 | protected function exec(CommandContextInterface $commandContext) { |
||
135 | |||
136 | /** |
||
137 | * @param mixed $commandOutput |
||
138 | * @return BuildCommand |
||
139 | */ |
||
140 | protected function setCommandOutput($commandOutput) { |
||
145 | |||
146 | /** |
||
147 | * BuildCommand constructor. |
||
148 | * @param string $configPath |
||
149 | * @param string $buildDirectory |
||
150 | * @param array $proxySettings |
||
151 | */ |
||
152 | public function __construct($configPath, $buildDirectory, array $proxySettings = array()) { |
||
157 | |||
158 | /** |
||
159 | * @param \App\Satis\BuildContext $buildContext |
||
160 | * @return $this |
||
161 | */ |
||
162 | public function setContext(BuildContext $buildContext) { |
||
167 | |||
168 | /** |
||
169 | * @param string $item |
||
170 | */ |
||
171 | public function setItem($item) { |
||
182 | |||
183 | /** |
||
184 | * @param \Monolog\Logger $logger |
||
185 | * @return BuildCommand |
||
186 | */ |
||
187 | public function setLogger(Logger $logger) { |
||
192 | |||
193 | /** |
||
194 | * @param string $directory |
||
195 | * @return BuildCommand |
||
196 | */ |
||
197 | public function withCd($directory) { |
||
203 | |||
204 | /** |
||
205 | * @param bool $asyncMode |
||
206 | * @return bool |
||
207 | * @throws PackageBuildFailedException |
||
208 | */ |
||
209 | public function run($asyncMode = true) { |
||
225 | |||
226 | /** |
||
227 | * @return bool |
||
228 | * @throws PackageBuildFailedException |
||
229 | */ |
||
230 | public function runSync() { |
||
241 | } |
||
242 |
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..