Skip to content

Commit 613b548

Browse files
authored
Merge branch 'main' into fix/fix-about-command-typo
2 parents 4f74ff4 + 7646bea commit 613b548

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Support/MaintenanceRepository.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class MaintenanceRepository implements Maintenance
1010
{
1111
public array $scenarios = [];
1212

13-
public ?MaintenanceScenario $foundScenario = null;
13+
public MaintenanceScenario|null|false $foundScenario = false;
1414
protected \Closure $uponActivation;
1515
protected \Closure $uponDeactivation;
1616

@@ -65,6 +65,10 @@ public function active(): bool
6565

6666
public function parameters(): ?array
6767
{
68+
if ($this->foundScenario === false) {
69+
$this->findScenario();
70+
}
71+
6872
return $this->foundScenario?->toArray();
6973
}
7074

0 commit comments

Comments
 (0)