Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c93bd6b

Browse filesBrowse files
committed
Reversed the variable name fix
1 parent 7bf7d2f commit c93bd6b
Copy full SHA for c93bd6b

File tree

Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed

‎workflow.rst

Copy file name to clipboardExpand all lines: workflow.rst
+3-3Lines changed: 3 additions & 3 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.