1 | <?php |
||
11 | class ClassCommand extends BaseCommand |
||
12 | { |
||
13 | /** |
||
14 | * @var \Factory\Generators\ClassGenerator |
||
15 | */ |
||
16 | private $generator; |
||
17 | /** |
||
18 | * @var \Factory\Composer |
||
19 | */ |
||
20 | private $composer; |
||
21 | |||
22 | public function __construct(Composer $composer, ClassGenerator $generator) |
||
37 | |||
38 | public function fire() |
||
56 | } |
||
57 |
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: