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
+1 -1
View File
@@ -15,7 +15,7 @@ interface IInputItem
public function getValue(); public function getValue();
public function setValue(string $value): self; public function setValue($value): self;
public function __toString(): string; public function __toString(): string;
+2 -2
View File
@@ -62,10 +62,10 @@ class InputItem implements IInputItem, \IteratorAggregate
/** /**
* Set input value * Set input value
* @param string $value * @param mixed $value
* @return static * @return static
*/ */
public function setValue(string $value): IInputItem public function setValue($value): IInputItem
{ {
$this->value = $value; $this->value = $value;