From b2207390f81e9c284c82f56157e6130be57e1794 Mon Sep 17 00:00:00 2001 From: Chihiro Adachi <8196725+chihiro-adachi@users.noreply.github.com> Date: Wed, 13 Dec 2023 15:06:49 +0900 Subject: [PATCH] Fix "Eccube\Service\OrderStateMachine::__construct(): Argument #1 ($_orderStateMachine) must be of type Symfony\Component\Workflow\StateMachine, Symfony\Component\Workflow\Debug\TraceableWorkflow given" --- src/Eccube/Service/OrderStateMachine.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Eccube/Service/OrderStateMachine.php b/src/Eccube/Service/OrderStateMachine.php index dec1b931310..14d6e4442fc 100644 --- a/src/Eccube/Service/OrderStateMachine.php +++ b/src/Eccube/Service/OrderStateMachine.php @@ -22,6 +22,7 @@ use Symfony\Component\EventDispatcher\EventSubscriberInterface; use Symfony\Component\Workflow\Event\Event; use Symfony\Component\Workflow\StateMachine; +use Symfony\Component\Workflow\WorkflowInterface; class OrderStateMachine implements EventSubscriberInterface { @@ -44,7 +45,7 @@ class OrderStateMachine implements EventSubscriberInterface */ private $stockReduceProcessor; - public function __construct(StateMachine $_orderStateMachine, OrderStatusRepository $orderStatusRepository, PointProcessor $pointProcessor, StockReduceProcessor $stockReduceProcessor) + public function __construct(WorkflowInterface $_orderStateMachine, OrderStatusRepository $orderStatusRepository, PointProcessor $pointProcessor, StockReduceProcessor $stockReduceProcessor) { $this->machine = $_orderStateMachine; $this->orderStatusRepository = $orderStatusRepository;