Skip to content

Commit

Permalink
Merge branch 'main' into upgrade/php-8.3
Browse files Browse the repository at this point in the history
  • Loading branch information
peterfox authored Nov 30, 2023
2 parents 7ed069c + 1d076c0 commit 9eecb48
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/FeatureFlagsServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ protected function aboutCommandInfo(): void
{
if (class_exists(AboutCommand::class)) {
AboutCommand::add('Feature Flags', [
'Pipeline' => fn () => implode(', Hello', config('features.pipeline')),
'Pipeline' => fn () => implode(', ', config('features.pipeline')),
]);
}
}
Expand Down
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 9eecb48

Please sign in to comment.