diff --git a/src/Workflow/StepAggregator.php b/src/Workflow/StepAggregator.php index db319b83..afdddf82 100644 --- a/src/Workflow/StepAggregator.php +++ b/src/Workflow/StepAggregator.php @@ -80,7 +80,7 @@ public function __construct(Reader $reader, $name = null) */ public function addStep(Step $step, $priority = null) { - $priority = null === $priority && $step instanceof PriorityStep ? $step->getPriority() : null; + $priority = null === $priority && $step instanceof PriorityStep ? $step->getPriority() : $priority; $priority = null === $priority ? 0 : $priority; $this->steps->insert($step, $priority);