Skip to content

Commit 568924e

Browse files
committed
bug #19778 [Workflow] Update code block according to its implementation (Mathieu Capdeville)
This PR was merged into the 5.4 branch. Discussion ---------- [Workflow] Update code block according to its implementation Update code block in `Marking Store` paragraph according to `MarkingStoreInterface.php` Commits ------- 304e413 [Workflow] Update code block according to its implementation
2 parents bfdf56e + 304e413 commit 568924e

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

workflow.rst

+8-2
Original file line numberDiff line numberDiff line change
@@ -864,12 +864,18 @@ the
864864

865865
final class BlogPostMarkingStore implements MarkingStoreInterface
866866
{
867-
public function getMarking(BlogPost $subject): Marking
867+
/**
868+
* @param BlogPost $subject
869+
*/
870+
public function getMarking(object $subject): Marking
868871
{
869872
return new Marking([$subject->getCurrentPlace() => 1]);
870873
}
871874

872-
public function setMarking(BlogPost $subject, Marking $marking): void
875+
/**
876+
* @param BlogPost $subject
877+
*/
878+
public function setMarking(object $subject, Marking $marking, array $context = []): void
873879
{
874880
$marking = key($marking->getPlaces());
875881
$subject->setCurrentPlace($marking);

0 commit comments

Comments
 (0)