1 | <?php |
||
17 | final class ShowRecordedEvents extends Command |
||
18 | { |
||
19 | /** |
||
20 | * @var EventStoreInterface |
||
21 | */ |
||
22 | private $eventStore; |
||
23 | |||
24 | /** |
||
25 | * @var UuidGeneratorInterface |
||
26 | */ |
||
27 | private $uuidGenerator; |
||
28 | |||
29 | /** |
||
30 | * @param EventStoreInterface $eventStore |
||
31 | * @param UuidGeneratorInterface $uuidGenerator |
||
32 | */ |
||
33 | public function __construct(EventStoreInterface $eventStore, UuidGeneratorInterface $uuidGenerator) |
||
40 | |||
41 | /** |
||
42 | * {@inheritdoc} |
||
43 | */ |
||
44 | public function configure() |
||
51 | |||
52 | /** |
||
53 | * {@inheritdoc} |
||
54 | */ |
||
55 | public function execute(InputInterface $input, OutputInterface $output) |
||
80 | |||
81 | /** |
||
82 | * @param array $payload |
||
83 | * |
||
84 | * @return string |
||
85 | */ |
||
86 | private function implodeRecursively(array $payload): string |
||
100 | } |
||
101 |
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: