1 | <?php |
||
15 | class SuiteControllerDecorator implements Controller |
||
16 | { |
||
17 | /** |
||
18 | * @var Controller |
||
19 | */ |
||
20 | private $suiteContoller; |
||
21 | |||
22 | /** |
||
23 | * @var EventDispatcherInterface |
||
24 | */ |
||
25 | private $eventDispatcher; |
||
26 | |||
27 | /** |
||
28 | * @param Controller $suiteContoller |
||
29 | * @param EventDispatcherInterface $eventDispatcher |
||
30 | */ |
||
31 | public function __construct(Controller $suiteContoller, EventDispatcherInterface $eventDispatcher) |
||
36 | |||
37 | /** |
||
38 | * Configures command to be executable by the controller. |
||
39 | * |
||
40 | * @param SymfonyCommand $command |
||
41 | */ |
||
42 | public function configure(SymfonyCommand $command) |
||
46 | |||
47 | /** |
||
48 | * Executes controller. |
||
49 | * |
||
50 | * @param InputInterface $input |
||
51 | * @param OutputInterface $output |
||
52 | * |
||
53 | * @return null|integer |
||
54 | */ |
||
55 | public function execute(InputInterface $input, OutputInterface $output) |
||
73 | } |
||
74 |
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: