From 601d9234f61cd0cacda7781ee1eeab01564d615f Mon Sep 17 00:00:00 2001 From: Benjamin Date: Thu, 11 Jan 2024 11:14:58 +0100 Subject: [PATCH] Fix wrong variable name. --- workflow/workflow-and-state-machine.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/workflow/workflow-and-state-machine.rst b/workflow/workflow-and-state-machine.rst index f6b93fa693c..09bbbd8befa 100644 --- a/workflow/workflow-and-state-machine.rst +++ b/workflow/workflow-and-state-machine.rst @@ -267,13 +267,13 @@ machine type, use ``camelCased workflow name + StateMachine``:: { public function __construct( // Symfony will inject the 'pull_request' state machine configured before - private WorkflowInterface $pullRequestWorkflow, + private WorkflowInterface $pullRequestStateMachine, ) { } public function someMethod(PullRequest $pullRequest): void { - $this->pullRequestWorkflow->apply($pullRequest, 'wait_for_review', [ + $this->pullRequestStateMachine->apply($pullRequest, 'wait_for_review', [ 'log_comment' => 'My logging comment for the wait for review transition.', ]); // ...