Skip to content

Commit

Permalink
Fix maintenance mode (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
peterfox authored Nov 30, 2023
1 parent 57a5d96 commit 7646bea
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Support/MaintenanceRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class MaintenanceRepository implements Maintenance
{
public array $scenarios = [];

public ?MaintenanceScenario $foundScenario = null;
public MaintenanceScenario|null|false $foundScenario = false;
protected \Closure $uponActivation;
protected \Closure $uponDeactivation;

Expand Down Expand Up @@ -65,6 +65,10 @@ public function active(): bool

public function parameters(): ?array
{
if ($this->foundScenario === false) {
$this->findScenario();
}

return $this->foundScenario?->toArray();
}

Expand Down

0 comments on commit 7646bea

Please sign in to comment.