1 | <?php |
||
17 | class NewCommand extends Command |
||
18 | { |
||
19 | /** |
||
20 | * Configure the command options. |
||
21 | * |
||
22 | * @return void |
||
23 | */ |
||
24 | protected function configure() |
||
33 | |||
34 | /** |
||
35 | * Execute the command. |
||
36 | * |
||
37 | * @param \Symfony\Component\Console\Input\InputInterface $input |
||
38 | * @param \Symfony\Component\Console\Output\OutputInterface $output |
||
39 | * @return void |
||
40 | */ |
||
41 | protected function execute(InputInterface $input, OutputInterface $output) |
||
95 | |||
96 | /** |
||
97 | * Verify that the application does not already exist. |
||
98 | * |
||
99 | * @param string $directory |
||
100 | * @return void |
||
101 | */ |
||
102 | protected function verifyApplicationDoesntExist($directory) |
||
108 | |||
109 | /** |
||
110 | * Generate a random temporary filename. |
||
111 | * |
||
112 | * @return string |
||
113 | */ |
||
114 | protected function makeFilename() |
||
118 | |||
119 | /** |
||
120 | * Download the temporary Zip to the given file. |
||
121 | * |
||
122 | * @param string $zipFile |
||
123 | * @param string $version |
||
124 | * @return $this |
||
125 | */ |
||
126 | protected function download($zipFile, $version = 'master') |
||
143 | |||
144 | /** |
||
145 | * Extract the Zip file into the given directory. |
||
146 | * |
||
147 | * @param string $zipFile |
||
148 | * @param string $directory |
||
149 | * @return $this |
||
150 | */ |
||
151 | protected function extract($zipFile, $directory) |
||
163 | |||
164 | /** |
||
165 | * Clean-up the Zip file. |
||
166 | * |
||
167 | * @param string $zipFile |
||
168 | * @return $this |
||
169 | */ |
||
170 | protected function cleanUp($zipFile) |
||
178 | |||
179 | /** |
||
180 | * Make sure the storage and bootstrap cache directories are writable. |
||
181 | * |
||
182 | * @param string $appDirectory |
||
183 | * @param \Symfony\Component\Console\Output\OutputInterface $output |
||
184 | * @return $this |
||
185 | */ |
||
186 | protected function prepareWritableDirectories($appDirectory, OutputInterface $output) |
||
199 | |||
200 | /** |
||
201 | * Get the version that should be downloaded. |
||
202 | * |
||
203 | * @param \Symfony\Component\Console\Input\InputInterface $input |
||
204 | * @return string |
||
205 | */ |
||
206 | protected function getVersion(InputInterface $input) |
||
214 | |||
215 | /** |
||
216 | * Get the composer command for the environment. |
||
217 | * |
||
218 | * @return string |
||
219 | */ |
||
220 | protected function findComposer() |
||
228 | } |
||
229 |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: