| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| 1 | <?php |
||
| 36 | protected function execute(InputInterface $input, OutputInterface $output) |
||
| 37 | { |
||
| 38 | $gen = new CodeGenerator( |
||
| 39 | Database::getConnection(), |
||
| 40 | array('default' => 'PHPCI'), |
||
| 41 | array('default' => PHPCI_DIR), |
||
|
|
|||
| 42 | false |
||
| 43 | ); |
||
| 44 | |||
| 45 | $gen->generateModels(); |
||
| 46 | $gen->generateStores(); |
||
| 47 | } |
||
| 48 | } |
||
| 49 |
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: