| Conditions | 1 |
| Paths | 1 |
| Total Lines | 17 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 31 | 6 | public function generate( |
|
| 32 | string $templateClassName, |
||
| 33 | \Iterator $files, |
||
| 34 | string $outputFilePath, |
||
| 35 | string $outputShortClassName |
||
| 36 | ) |
||
| 37 | { |
||
| 38 | 6 | $this->getGenerator() |
|
| 39 | 6 | ->discoverAndPutContents( |
|
| 40 | 6 | $this->discover($files), |
|
|
|
|||
| 41 | 5 | $templateClassName, |
|
| 42 | 5 | $outputFilePath, |
|
| 43 | 5 | $outputShortClassName |
|
| 44 | ); |
||
| 45 | |||
| 46 | 5 | $this->log($outputFilePath, $files); |
|
| 47 | 5 | } |
|
| 48 | |||
| 54 | } |
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: