10000 [Workflow] Fixed BC break with `MarkingStoreInterface::setMarking()` · symfony/workflow@f781f3f · GitHub
[go: up one dir, main page]

Skip to content

Commit f781f3f

Browse files
committed
[Workflow] Fixed BC break with MarkingStoreInterface::setMarking()
1 parent 36cb2f0 commit f781f3f

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

MarkingStore/MarkingStoreInterface.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ public function getMarking($subject);
3737
* Sets a Marking to a subject.
3838
*
3939
* @param object $subject A subject
40+
* @param array $context Some context
4041
*/
41-
public function setMarking($subject, Marking $marking, array $context = []);
42+
public function setMarking($subject, Marking $marking /*, array $context = []*/);
4243
}

MarkingStore/MultipleStateMarkingStore.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,10 @@ public function getMarking($subject)
4545

4646
/**
4747
* {@inheritdoc}
48+
*
49+
* @param array $context Some context
4850
*/
49-
public function setMarking($subject, Marking $marking, array $context = [])
51+
public function setMarking($subject, Marking $marking/*, array $context = []*/)
5052
{
5153
$this->propertyAccessor->setValue($subject, $this->property, $marking->getPlaces());
5254
}

MarkingStore/SingleStateMarkingStore.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,10 @@ public function getMarking($subject)
5050

5151
/**
5252
* {@inheritdoc}
53+
*
54+
* @param array $context Some context
5355
*/
54-
public function setMarking($subject, Marking $marking, array $context = [])
56+
public function setMarking($subject, Marking $marking/*, array $context = []*/)
5557
{
5658
$this->propertyAccessor->setValue($subject, $this->property, key($marking->getPlaces()));
5759
}

0 commit comments

Comments
 (0)
0