Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commitc93bd6b

Browse files
committed
Reversed the variable name fix
1 parent7bf7d2f commitc93bd6b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎workflow.rst

Lines 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)

[8]ページ先頭

©2009-2025 Movatter.jp