Skip to content

Commit c93bd6b

Browse files
committed
Reversed the variable name fix
1 parent 7bf7d2f commit c93bd6b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

workflow.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -234,13 +234,13 @@ registry in the constructor::
234234
$this->workflowRegistry = $workflowRegistry;
235235
}
236236

237-
public function toReview(BlogPost $blogPost)
237+
public function toReview(BlogPost $post)
238238
{
239-
$workflow = $this->workflowRegistry->get($blogPost);
239+
$workflow = $this->workflowRegistry->get($post);
240240

241241
// Update the currentState on the post
242242
try {
243-
$workflow->apply($blogPost, 'to_review');
243+
$workflow->apply($post, 'to_review');
244244
} catch (LogicException $exception) {
245245
// ...
246246
}

0 commit comments

Comments
 (0)