Skip to content

Commit

Permalink
Fix code styling
Browse files Browse the repository at this point in the history
  • Loading branch information
jessarcher authored and github-actions[bot] committed Jul 25, 2023
1 parent 1785618 commit 7824131
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/SearchPrompt.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ class SearchPrompt extends Prompt
/**
* The index of the highlighted option.
*/
public int|null $highlighted = null;
public ?int $highlighted = null;

/**
* The cached matches.
*
* @var array<int|string, string>|null
*/
protected array|null $matches = null;
protected ?array $matches = null;

/**
* Create a new SuggestPrompt instance.
Expand Down
2 changes: 1 addition & 1 deletion src/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ function suggest(string $label, array|Closure $options, string $placeholder = ''
*
* @param Closure(string): array<int|string, string> $options
*/
function search(string $label, Closure $options, string $placeholder = '', int $scroll = 5, ?Closure $validate = null): int|string
function search(string $label, Closure $options, string $placeholder = '', int $scroll = 5, Closure $validate = null): int|string
{
return (new SearchPrompt($label, $options, $placeholder, $scroll, $validate))->prompt();
}
Expand Down

0 comments on commit 7824131

Please sign in to comment.