diff --git a/src/Step.php b/src/Step.php index a4af145..e785c0b 100644 --- a/src/Step.php +++ b/src/Step.php @@ -68,18 +68,6 @@ public function __construct(Wizard $wizard, int $index) $this->index = $index; } - /** - * Make a new static step. - * - * @param \Ycs77\LaravelWizard\Wizard $wizard - * @param int $index - * @return self - */ - public static function make(Wizard $wizard, int $index) - { - return new static(...func_get_args()); - } - /** * Get the step index. * diff --git a/tests/Unit/StepTest.php b/tests/Unit/StepTest.php index d28e9f8..a7e3662 100644 --- a/tests/Unit/StepTest.php +++ b/tests/Unit/StepTest.php @@ -52,11 +52,6 @@ public function testGetStepProperties() $this->assertEquals('steps.user', $this->step->view()); } - public function testMakeFromStatic() - { - $this->assertNotNull(UserStepStub::make($this->wizard, 0)); - } - public function testGetData() { // arrange