Skip to content

Commit

Permalink
Changed return type of WorkflowControllerTrait::getWorkflow for Workf…
Browse files Browse the repository at this point in the history
…lowInterface (#37)

* Change the return value of WorkflowControllerTrait

* Add the WorkflowInterface use
  • Loading branch information
KevinEcotree authored Jan 12, 2024
1 parent e6b9fb4 commit 71a1566
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Controller/WorkflowControllerTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
use Symfony\Component\Workflow\Exception\LogicException;
use Symfony\Component\Workflow\Registry;
use Symfony\Component\Workflow\Workflow;
use Symfony\Component\Workflow\WorkflowInterface;

/**
*
Expand Down Expand Up @@ -131,7 +132,7 @@ public function workflowApplyTransitionAction(Request $request): Response
/**
* @throws InvalidArgumentException
*/
protected function getWorkflow(object $object): Workflow
protected function getWorkflow(object $object): WorkflowInterface
{
$registry = $this->workflowRegistry ?? null;
if ($registry === null) {
Expand Down

0 comments on commit 71a1566

Please sign in to comment.