| 1 | <?php |
||
| 10 | class Generate extends Command |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var Generate\ReaderDataset |
||
| 14 | */ |
||
| 15 | private $stateReader; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var Generate\ClassFileWriter |
||
| 19 | */ |
||
| 20 | private $writer; |
||
| 21 | |||
| 22 | public function __construct() |
||
| 28 | |||
| 29 | protected function configure() |
||
| 40 | |||
| 41 | protected function execute(InputInterface $input, OutputInterface $output) |
||
| 55 | } |
||
| 56 |
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: