- Fixed `$methods` argument not properly passed in `InputHandler` class.
- Updated helpers.php with latest changes.
This commit is contained in:
Simon Sessingø
2018-03-29 22:17:53 +02:00
parent e6db83c97a
commit a11595fb86
3 changed files with 7 additions and 17 deletions
+1 -1
View File
@@ -243,7 +243,7 @@ class InputHandler
*/
public function getValue(string $index, ?string $defaultValue = null, ...$methods): ?string
{
$input = $this->get($index, $methods);
$input = $this->get($index, ...$methods);
return ($input === null || ($input !== null && trim($input->getValue()) === '')) ? $defaultValue : $input->getValue();
}