Merge pull request #514 from skipperbent/v4-inputitem-value

[FEATURE] Add support for mixed value types in InputItem as requested by #438
This commit is contained in:
Simon Sessingø
2021-03-23 15:02:18 +01:00
committed by GitHub
2 changed files with 3 additions and 3 deletions

View File

@@ -15,7 +15,7 @@ interface IInputItem
public function getValue();
public function setValue(string $value): self;
public function setValue($value): self;
public function __toString(): string;

View File

@@ -62,10 +62,10 @@ class InputItem implements IInputItem, \IteratorAggregate
/**
* Set input value
* @param string $value
* @param mixed $value
* @return static
*/
public function setValue(string $value): IInputItem
public function setValue($value): IInputItem
{
$this->value = $value;