diff --git a/src/Support/State.php b/src/Support/State.php index 9e9570c..cdb50df 100644 --- a/src/Support/State.php +++ b/src/Support/State.php @@ -25,7 +25,13 @@ public function setCurrentStepName(string $currentStepName): self public function forStep(string $stepName): array { - return $this->allState[$stepName] ?? []; + $state = $this->allState[$stepName] ?? []; + + if (array_key_exists('allStepsState', $state)) { + unset($state['allStepsState']); + } + + return $state; } public function get(string $key)