Skip to content

Commit

Permalink
Fix setOptions typehints.
Browse files Browse the repository at this point in the history
  • Loading branch information
demiankatz committed May 11, 2023
1 parent d5c2a87 commit 71c159b
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 71c159b

Please sign in to comment.