Skip to content

Commit 0a418e9

Browse files
author
Tobias Wojtylak
committed
Removed FlowContext as Parameter for StepRequiredChecker
1 parent 4e5d1e4 commit 0a418e9

File tree

3 files changed

+4
-9
lines changed

3 files changed

+4
-9
lines changed

spec/StepChecker/DefaultStepRequiredCheckerSpec.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
namespace spec\solutionDrive\MultiStepBundle\StepChecker;
44

55
use PhpSpec\ObjectBehavior;
6-
use solutionDrive\MultiStepBundle\Context\FlowContextInterface;
76
use solutionDrive\MultiStepBundle\StepChecker\DefaultStepRequiredChecker;
87
use solutionDrive\MultiStepBundle\StepChecker\StepRequiredCheckerInterface;
98

@@ -19,8 +18,8 @@ function it_implements_step_required_checker_interface()
1918
$this->shouldImplement(StepRequiredCheckerInterface::class);
2019
}
2120

22-
function it_returns_true(FlowContextInterface $flowContext)
21+
function it_returns_true()
2322
{
24-
$this->check($flowContext)->shouldReturn(true);
23+
$this->check()->shouldReturn(true);
2524
}
2625
}

src/StepChecker/DefaultStepRequiredChecker.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,9 @@
99

1010
namespace solutionDrive\MultiStepBundle\StepChecker;
1111

12-
use solutionDrive\MultiStepBundle\Context\FlowContextInterface;
13-
1412
class DefaultStepRequiredChecker implements StepRequiredCheckerInterface
1513
{
16-
public function check(FlowContextInterface $flowContext): bool
14+
public function check(): bool
1715
{
1816
return true;
1917
}

src/StepChecker/StepRequiredCheckerInterface.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@
99

1010
namespace solutionDrive\MultiStepBundle\StepChecker;
1111

12-
use solutionDrive\MultiStepBundle\Context\FlowContextInterface;
13-
1412
interface StepRequiredCheckerInterface
1513
{
16-
public function check(FlowContextInterface $flowContext): bool;
14+
public function check(): bool;
1715
}

0 commit comments

Comments
 (0)