Skip to content

Commit

Permalink
Merge branch 'main' into fix/fix-about-command-typo
Browse files Browse the repository at this point in the history
  • Loading branch information
peterfox authored Nov 30, 2023
2 parents 4f74ff4 + 7646bea commit 613b548
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 613b548

Please sign in to comment.