| 1 | <?php namespace Cerbero\Workflow; |
||
| 8 | trait RunsWorkflow { |
||
| 9 | |||
| 10 | /** |
||
| 11 | * @author Andrea Marco Sartori |
||
| 12 | * @var Cerbero\Workflow\Workflow $workflow Workflows hub. |
||
| 13 | */ |
||
| 14 | protected $workflow; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Set the workflow to run. |
||
| 18 | * |
||
| 19 | * @author Andrea Marco Sartori |
||
| 20 | * @param Cerbero\Workflow\Workflow $workflow |
||
| 21 | * @return void |
||
| 22 | */ |
||
| 23 | public function setWorkflow(Workflow $workflow) |
||
| 27 | |||
| 28 | } |
||
| 29 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..