1 | <?php |
||
19 | abstract class Command extends Symfony |
||
20 | { |
||
21 | /** |
||
22 | * @var string |
||
23 | */ |
||
24 | protected $signature = ''; |
||
25 | |||
26 | /** |
||
27 | * @var string |
||
28 | */ |
||
29 | protected $description = ''; |
||
30 | |||
31 | /** |
||
32 | * @var InputInterface |
||
33 | */ |
||
34 | private $input; |
||
35 | |||
36 | /** |
||
37 | * @var OutputInterface |
||
38 | */ |
||
39 | private $output; |
||
40 | |||
41 | /** |
||
42 | * @throws \Symfony\Component\Console\Exception\InvalidArgumentException |
||
43 | */ |
||
44 | public function configure(): void |
||
63 | |||
64 | /** |
||
65 | * @param \Throwable $e |
||
66 | * @param OutputInterface|null $output |
||
67 | * @throws \Symfony\Component\Console\Exception\InvalidArgumentException |
||
68 | */ |
||
69 | private function throw(\Throwable $e, OutputInterface $output = null): void |
||
73 | |||
74 | /** |
||
75 | * @return Application|\Symfony\Component\Console\Application |
||
76 | */ |
||
77 | public function getApplication(): Application |
||
81 | |||
82 | /** |
||
83 | * @param InputInterface $input |
||
84 | * @param OutputInterface $output |
||
85 | * @return int|null|void |
||
86 | * @throws \Symfony\Component\Console\Exception\InvalidArgumentException |
||
87 | * @throws \Throwable |
||
88 | */ |
||
89 | public function execute(InputInterface $input, OutputInterface $output) |
||
100 | |||
101 | /** |
||
102 | * @throws \BadMethodCallException |
||
103 | */ |
||
104 | private function callHandle(): void |
||
115 | } |
||
116 |
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: