Added support for objects like array etc as default-value. Value is now less strict.

This commit is contained in:
Simon Sessingø
2021-03-17 15:43:00 +01:00
parent d601e8eca3
commit 27cd8b8a1f
4 changed files with 18 additions and 117 deletions
+2 -2
View File
@@ -214,11 +214,11 @@ class InputHandler
* Get input element value matching index
*
* @param string $index
* @param string|null $defaultValue
* @param string|object|null $defaultValue
* @param array ...$methods
* @return string|array
*/
public function value(string $index, ?string $defaultValue = null, ...$methods)
public function value(string $index, $defaultValue = null, ...$methods)
{
$input = $this->find($index, ...$methods);