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