8000 [Workflow] Remove redundant type check · symfony/symfony@60b1672 · GitHub
[go: up one dir, main page]

Skip to content

Commit 60b1672

Browse files
committed
[Workflow] Remove redundant type check
1 parent d3a33b9 commit 60b1672

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/Symfony/Component/Workflow/Workflow.php

Lines changed: 0 additions & 4 deletions
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)
0