Skip to content

Commit

Permalink
Finesse types
Browse files Browse the repository at this point in the history
  • Loading branch information
bakert committed Oct 8, 2024
1 parent 2cece23 commit 2e00832
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gatherling/lib_form_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function submit(string $label, string $name = 'action'): string

/**
* @param array<string, string> $options
* @return array{id: string, name: string, options: array<int, array{isSelected: bool, value: string, text: string}>}
* @return array{id: string, name: string, options: list<array{isSelected: bool, value: string, text: string}>}
*/
function selectArgs(string $name, array $options = [], mixed $selected = null, ?string $id = null): array
{
Expand Down Expand Up @@ -81,7 +81,7 @@ function selectInput(string $label, string $name, ?array $options, mixed $select

/**
* @param array<string, string> $options
* @return array{id: string, name: string, label: string, select: array{id: string, name: string, options: array<int, array{isSelected: bool, value: string, text: string}>}}
* @return array{id: string, name: string, label: string, select: array{id: string, name: string, options: list<array{isSelected: bool, value: string, text: string}>}}
*/
function selectInputArgs(string $label, string $name, ?array $options, mixed $selected = null, ?string $id = null): array
{
Expand Down

0 comments on commit 2e00832

Please sign in to comment.