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

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy