Skip to content

Commit

Permalink
Merge branch '7.0' into 7.1
Browse files Browse the repository at this point in the history
* 7.0:
  [Workflow] Update code block according to its implementation
  • Loading branch information
OskarStark committed Apr 22, 2024
2 parents 2075959 + a020450 commit ab33e29
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions workflow.rst
Original file line number Diff line number Diff line change
Expand Up @@ -968,12 +968,18 @@ the

final class BlogPostMarkingStore implements MarkingStoreInterface
{
public function getMarking(BlogPost $subject): Marking
/**
* @param BlogPost $subject
*/
public function getMarking(object $subject): Marking
{
return new Marking([$subject->getCurrentPlace() => 1]);
}

public function setMarking(BlogPost $subject, Marking $marking): void
/**
* @param BlogPost $subject
*/
public function setMarking(object $subject, Marking $marking, array $context = []): void
{
$marking = key($marking->getPlaces());
$subject->setCurrentPlace($marking);
Expand Down

0 comments on commit ab33e29

Please sign in to comment.