Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ parameters:
path: src/AbstractWizard.php

-
message: "#^Method Arcanist\\\\AbstractWizard\\:\\:firstIncompleteStep\\(\\) should return Arcanist\\\\WizardStep but returns Arcanist\\\\WizardStep\\|null\\.$#"
message: "#^Method Arcanist\\\\AbstractWizard\\:\\:firstIncompleteStep\\(\\) should return Arcanist\\\\WizardStep but returns mixed\\.$#"
count: 1
path: src/AbstractWizard.php

Expand Down
2 changes: 1 addition & 1 deletion src/AbstractWizard.php
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ private function isLastStep(): bool

private function firstIncompleteStep(): WizardStep
{
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]);
}

/**
Expand Down