From 71a156626dde23e0f4ba0498f38bf353e8627206 Mon Sep 17 00:00:00 2001 From: KevinEcotree <50327089+KevinEcotree@users.noreply.github.com> Date: Fri, 12 Jan 2024 09:43:58 +0100 Subject: [PATCH] Changed return type of WorkflowControllerTrait::getWorkflow for WorkflowInterface (#37) * Change the return value of WorkflowControllerTrait * Add the WorkflowInterface use --- src/Controller/WorkflowControllerTrait.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Controller/WorkflowControllerTrait.php b/src/Controller/WorkflowControllerTrait.php index 813aab3..72e5ea8 100644 --- a/src/Controller/WorkflowControllerTrait.php +++ b/src/Controller/WorkflowControllerTrait.php @@ -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; /** * @@ -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) {