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 dbe52bb commit 1bed113Copy full SHA for 1bed113
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()) ?? $this->steps[count($this->steps) - 1];
+ return collect($this->availableSteps())->first(fn (WizardStep $step) => !$step->isComplete(), $this->steps[count($this->steps) - 1]);
513
}
514
515
/**
0 commit comments