Skip to content

Commit

Permalink
Fix Step priorities #293 (#294)
Browse files Browse the repository at this point in the history
* Fix Step priorities #293

* Update StepAggregator.php
  • Loading branch information
mattrq authored and ddeboer committed Jun 9, 2016
1 parent 3feeea8 commit 9fb9571
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Workflow/StepAggregator.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9fb9571

Please sign in to comment.