Skip to content

Commit 71a1566

Browse files
authored
Changed return type of WorkflowControllerTrait::getWorkflow for WorkflowInterface (#37)
* Change the return value of WorkflowControllerTrait * Add the WorkflowInterface use
1 parent e6b9fb4 commit 71a1566

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Controller/WorkflowControllerTrait.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
use Symfony\Component\Workflow\Exception\LogicException;
1818
use Symfony\Component\Workflow\Registry;
1919
use Symfony\Component\Workflow\Workflow;
20+
use Symfony\Component\Workflow\WorkflowInterface;
2021

2122
/**
2223
*
@@ -131,7 +132,7 @@ public function workflowApplyTransitionAction(Request $request): Response
131132
/**
132133
* @throws InvalidArgumentException
133134
*/
134-
protected function getWorkflow(object $object): Workflow
135+
protected function getWorkflow(object $object): WorkflowInterface
135136
{
136137
$registry = $this->workflowRegistry ?? null;
137138
if ($registry === null) {

0 commit comments

Comments
 (0)