1 | <?php |
||
18 | class ArrayWorkflowFactory extends XmlWorkflowFactory |
||
19 | { |
||
20 | /** |
||
21 | * |
||
22 | * @var string |
||
23 | */ |
||
24 | const WORKFLOWS_PROPERTY = 'workflows'; |
||
25 | |||
26 | /** |
||
27 | * |
||
28 | * @return void |
||
29 | * @throws FactoryException |
||
30 | * @throws InvalidParsingWorkflowException |
||
31 | * @throws \OldTown\Workflow\Exception\RemoteException |
||
32 | */ |
||
33 | public function initDone() |
||
46 | } |
||
47 |
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: