1 | <?php |
||
22 | class Cli extends AbstractBootstrap |
||
23 | { |
||
24 | /** |
||
25 | * Getopt. |
||
26 | * |
||
27 | * @var GetOpt |
||
28 | */ |
||
29 | protected $getopt; |
||
30 | |||
31 | /** |
||
32 | * Container. |
||
33 | * |
||
34 | * @var ContainerInterface |
||
35 | */ |
||
36 | protected $container; |
||
37 | |||
38 | /** |
||
39 | * {@inheritdoc} |
||
40 | */ |
||
41 | public function __construct(LoggerInterface $logger, GetOpt $getopt, ContainerInterface $container) |
||
49 | |||
50 | /** |
||
51 | * Process. |
||
52 | * |
||
53 | * @return Cli |
||
54 | */ |
||
55 | public function process() |
||
64 | |||
65 | /** |
||
66 | * Remove logger. |
||
67 | * |
||
68 | * @return Cli |
||
69 | */ |
||
70 | protected function reduceLogLevel(): self |
||
84 | |||
85 | /** |
||
86 | * Configure cli logger. |
||
87 | * |
||
88 | * @return Cli |
||
89 | */ |
||
90 | protected function configureLogger(?int $level = null): self |
||
111 | |||
112 | /** |
||
113 | * Set exception handler. |
||
114 | * |
||
115 | * @return Cli |
||
116 | */ |
||
117 | protected function setExceptionHandler(): self |
||
128 | } |
||
129 |
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: