Skip to content

Commit

Permalink
Fix "Eccube\Service\OrderStateMachine::__construct(): Argument #1 ($_…
Browse files Browse the repository at this point in the history
…orderStateMachine) must be of type Symfony\Component\Workflow\StateMachine, Symfony\Component\Workflow\Debug\TraceableWorkflow given"
  • Loading branch information
chihiro-adachi committed Dec 13, 2023
1 parent 357a724 commit b220739
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Eccube/Service/OrderStateMachine.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand All @@ -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;
Expand Down

0 comments on commit b220739

Please sign in to comment.