| 1 | <?php |
||
| 18 | final class ContainerAwareCommandBus implements CommandBusInterface |
||
| 19 | { |
||
| 20 | private $container; |
||
| 21 | private $handlers; |
||
| 22 | private $bus; |
||
| 23 | |||
| 24 | 6 | public function __construct( |
|
| 38 | |||
| 39 | /** |
||
| 40 | * {@inheritdoc} |
||
| 41 | */ |
||
| 42 | 3 | public function handle($command) |
|
| 54 | |||
| 55 | 2 | private function initialize() |
|
| 70 | } |
||
| 71 |
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: