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