We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca2d3e0 commit dbe52bbCopy full SHA for dbe52bb
src/AbstractWizard.php
@@ -509,7 +509,7 @@ private function isLastStep(): bool
509
510
private function firstIncompleteStep(): WizardStep
511
{
512
- return collect($this->availableSteps())->first(fn (WizardStep $step) => !$step->isComplete());
+ return collect($this->availableSteps())->first(fn (WizardStep $step) => !$step->isComplete()) ?? $this->steps[count($this->steps) - 1];
513
}
514
515
/**
0 commit comments