Skip to content

Commit

Permalink
Merge pull request #805 from demiankatz/fix-setoptions-typehints
Browse files Browse the repository at this point in the history
Fix setOptions typehints.
  • Loading branch information
TomHAnderson authored Jun 7, 2023
2 parents d5c2a87 + 71c159b commit a63fb62
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Form/Element/ObjectMultiCheckbox.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function setOptions(iterable $options): self
/**
* @return $this
*/
public function setOption(mixed $key, mixed $value): self
public function setOption(string $key, mixed $value): self
{
$this->getProxy()->setOptions([$key => $value]);

Expand Down
2 changes: 1 addition & 1 deletion src/Form/Element/ObjectRadio.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function setOptions(iterable $options): self
/**
* @return $this
*/
public function setOption(mixed $key, mixed $value): self
public function setOption(string $key, mixed $value): self
{
$this->getProxy()->setOptions([$key => $value]);

Expand Down
2 changes: 1 addition & 1 deletion src/Form/Element/ObjectSelect.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function setOptions(iterable $options): self
/**
* @return $this
*/
public function setOption(mixed $key, mixed $value): self
public function setOption(string $key, mixed $value): self
{
$this->getProxy()->setOptions([$key => $value]);

Expand Down

0 comments on commit a63fb62

Please sign in to comment.