diff --git a/Workflow/TaskWorkflowManager.php b/Workflow/TaskWorkflowManager.php index cf34f4c66..13be91bd3 100644 --- a/Workflow/TaskWorkflowManager.php +++ b/Workflow/TaskWorkflowManager.php @@ -18,8 +18,8 @@ namespace Chill\TaskBundle\Workflow; use Chill\TaskBundle\Entity\AbstractTask; -use Symfony\Component\Workflow\SupportStrategy\SupportStrategyInterface; -use Symfony\Component\Workflow\Workflow; +use Symfony\Component\Workflow\SupportStrategy\WorkflowSupportStrategyInterface; +use Symfony\Component\Workflow\WorkflowInterface; use Symfony\Component\Workflow\Event\Event; /** @@ -27,7 +27,7 @@ use Symfony\Component\Workflow\Event\Event; * * @author Julien Fastré */ -class TaskWorkflowManager implements SupportStrategyInterface +class TaskWorkflowManager implements WorkflowSupportStrategyInterface { /** * @@ -66,7 +66,7 @@ class TaskWorkflowManager implements SupportStrategyInterface return $definitions[0]; } - public function supports(Workflow $workflow, $subject): bool + public function supports(WorkflowInterface $workflow, $subject): bool { if (!$subject instanceof AbstractTask) { return false;