These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | namespace phpDocumentor\Parser\Util; |
||
3 | |||
4 | use phpDocumentor\Command\Helper\ConfigurationHelper; |
||
5 | use phpDocumentor\Fileset\Collection; |
||
6 | use phpDocumentor\Parser\Parser; |
||
7 | use Symfony\Component\Console\Input\InputInterface; |
||
8 | |||
9 | class ParserPopulator |
||
10 | { |
||
11 | 1 | public function populate( |
|
12 | Parser $parser, |
||
13 | InputInterface $input, |
||
14 | ConfigurationHelper $configurationHelper |
||
15 | ) { |
||
16 | 1 | $parser->setForced($input->getOption('force')); |
|
17 | 1 | $parser->setEncoding($configurationHelper->getOption($input, 'encoding', 'parser/encoding')); |
|
18 | 1 | $parser->setMarkers( |
|
19 | 1 | $configurationHelper->getOption( |
|
0 ignored issues
–
show
|
|||
20 | 1 | $input, |
|
21 | 1 | 'markers', |
|
22 | 1 | 'parser/markers', |
|
23 | 1 | array('TODO', 'FIXME'), |
|
24 | 1 | true |
|
25 | ) |
||
26 | ); |
||
27 | 1 | $parser->setIgnoredTags($input->getOption('ignore-tags')); |
|
28 | 1 | $parser->setValidate($input->getOption('validate')); |
|
29 | 1 | $parser->setDefaultPackageName( |
|
30 | 1 | $configurationHelper->getOption($input, 'defaultpackagename', 'parser/default-package-name') |
|
31 | ); |
||
32 | 1 | } |
|
33 | } |
||
34 |
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: