Skip to content

Commit

Permalink
fix - Use WorkflowInterface instead of Workflow (#36)
Browse files Browse the repository at this point in the history
This cause an issue with TraceableWorkflow
  • Loading branch information
mpoiriert authored Jan 4, 2024
1 parent d9d7f8d commit e6b9fb4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Admin/Extension/WorkflowExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
use Symfony\Component\Workflow\Exception\InvalidArgumentException;
use Symfony\Component\Workflow\Registry;
use Symfony\Component\Workflow\Transition;
use Symfony\Component\Workflow\Workflow;
use Symfony\Component\Workflow\WorkflowInterface;

/**
* @author Yann Eugoné <[email protected]>
Expand Down Expand Up @@ -107,7 +107,7 @@ public function getAccessMapping(AdminInterface $admin): array
/**
* @throws InvalidArgumentException
*/
protected function getWorkflow(object $subject, string $workflowName = null): Workflow
protected function getWorkflow(object $subject, string $workflowName = null): WorkflowInterface
{
return $this->registry->get($subject, $workflowName);
}
Expand Down

0 comments on commit e6b9fb4

Please sign in to comment.