Skip to content

Commit

Permalink
Annotate command data generics
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Oct 28, 2023
1 parent 5337900 commit 8eb1d80
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ class PublishHomepageCommand extends Command
/** @var string */
protected $description = 'Publish one of the default homepages to index.blade.php.';

/** @var array<string, array{name: string, description: string, group: string}> */
protected array $options = [
'welcome'=> [
'name' => 'Welcome',
Expand Down Expand Up @@ -96,6 +97,7 @@ protected function formatPublishableChoices(): array
})->values()->toArray();
}

/** @return Collection<array{name: string, description: string, group: string}> */
protected function getTemplateOptions(): Collection
{
return new Collection($this->options);
Expand Down

0 comments on commit 8eb1d80

Please sign in to comment.