mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-06-17 08:47:52 +00:00
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:
@@ -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;
|
||||||
|
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user