Skip to content

Commit

Permalink
Merge pull request #18 from 8fold/body-props
Browse files Browse the repository at this point in the history
add: String or int to options dictionary
  • Loading branch information
joshbruce authored Apr 30, 2023
2 parents 7564b4a + 1e51690 commit d0c575a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Forms/Select.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class Select implements Stringable
private bool $checkbox = false;

/**
* @param array<string, string> $options
* @param array<string|int, string> $options
* @param string|string[] $selected
*/
public static function create(
Expand All @@ -32,7 +32,7 @@ public static function create(
}

/**
* @param array<string, string> $options
* @param array<string|int, string> $options
* @param string|string[] $selected
*/
final private function __construct(
Expand All @@ -43,9 +43,9 @@ final private function __construct(
) {
}

public function wrapperProps(string ...$propperties): self
public function wrapperProps(string ...$properties): self
{
$this->wrapperProperties = $propperties;
$this->wrapperProperties = $properties;
return $this;
}

Expand Down

0 comments on commit d0c575a

Please sign in to comment.