Skip to content

Commit d11f8a7

Browse files
committed
[Workflow] Remove redundant type check
1 parent b89051d commit d11f8a7

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

Workflow.php

-4
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,6 @@ public function getMarking(object $subject, array $context = []): Marking
8383
{
8484
$marking = $this->markingStore->getMarking($subject);
8585

86-
if (!$marking instanceof Marking) {
87-
throw new LogicException(sprintf('The value returned by the MarkingStore is not an instance of "%s" for workflow "%s".', Marking::class, $this->name));
88-
}
89-
9086
// check if the subject is already in the workflow
9187
if (!$marking->getPlaces()) {
9288
if (!$this->definition->getInitialPlaces()) {

0 commit comments

Comments
 (0)