Skip to content

Commit dae0e7c

Browse files
author
Enno Woortmann
committed
require run method to have void return type
1 parent abfe647 commit dae0e7c

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/Step/Loop.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function getDescription(): string
4242
return $this->loopControl->getDescription();
4343
}
4444

45-
public function run(WorkflowControl $control, WorkflowContainer $container)
45+
public function run(WorkflowControl $control, WorkflowContainer $container): void
4646
{
4747
$iteration = 0;
4848

src/Step/NestedWorkflow.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public function getDescription(): string
2929
return "Execute nested workflow";
3030
}
3131

32-
public function run(WorkflowControl $control, WorkflowContainer $container)
32+
public function run(WorkflowControl $control, WorkflowContainer $container): void
3333
{
3434
try {
3535
$this->workflowResult = $this->nestedWorkflow->executeWorkflow(

src/Step/WorkflowStep.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ interface WorkflowStep extends Describable
1313
/**
1414
* Implement the logic for your step
1515
*/
16-
public function run(WorkflowControl $control, WorkflowContainer $container);
16+
public function run(WorkflowControl $control, WorkflowContainer $container): void;
1717
}

tests/WorkflowSetupTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function getDescription(): string
3434
return $this->description;
3535
}
3636

37-
public function run(WorkflowControl $control, WorkflowContainer $container)
37+
public function run(WorkflowControl $control, WorkflowContainer $container): void
3838
{
3939
($this->callable)($control, $container);
4040
}

0 commit comments

Comments
 (0)