diff --git a/workflow.rst b/workflow.rst index 2a490dbe261..ae99f35f429 100644 --- a/workflow.rst +++ b/workflow.rst @@ -240,7 +240,7 @@ registry in the constructor:: // Update the currentState on the post try { - $workflow->apply($post, 'to_review'); + $workflow->apply($blogPost, 'to_review'); } catch (LogicException $exception) { // ... }